>m>>n; for(i=0;i<m;i+" name="description">


Home Answers Viewqa Java-Beginners find error inc++

 
 


seaman
find error inc++
1 Answer(s)      a year and 10 months ago
Posted in : Java Beginners

include
include

int main()
{
      int a[10],b[10],i,j,m,n;
      cout<<"Enter size of matrix";
      cin>>m>>n;

for(i=0;i<m;i++)//Initializing matrix a for(j=0;j<n;j++) { cout<<"a["<<i<<"]["<<j<<"]="; cin>>a[i][j]; } for(i=0;i<m;i++)//Transposing matrix for(j=0;j<n;j++) { b[i][j]=a[j][i]; } for(i=0;i<=m;i++)//printing matrix b { cout<<endl; for(j=0;j<=n;j++) { cout<<"\t"<<b[i][j]; } } getch(); return 0; }
View Answers

August 27, 2011 at 11:18 AM


    #include<iostream.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    int a[10][10],m,n,i,j;
    cout<<"Enter number of rows: ";
    cin>>m;
    cout<<"Enter number of coloumns: ";
   cin>>n;
   if(m!=n)
   {
   cout<<"Matrix not square so Transpose not possible!";
   }
   else
   {
   cout<<endl<<"Enter elements of matrix: "<<endl;
   for(i=0;i<m;i++)
   {
  for(j=0;j<n;j++)
   {
  cout<<"Enter element a"<<i+1<<j+1<<": ";
   cin>>a[i][j];
   }
   }
   cout<<endl<<"Matrix: "<<endl<<endl;
   for(i=0;i<m;i++)
   {
   for(j=0;j<n;j++)
   {
   cout<<a[i][j]<<" ";
   }
   cout<<endl<<endl;
   }
  cout<<endl<<"Matrix Transpose: "<<endl<<endl;
   for(i=0;i<m;i++)
   {
   for(j=0;j<n;j++)
   {
  cout<<a[j][i]<<" ";
   }
   cout<<endl<<endl;
   }
   }
  getch();
   }









Related Pages:
find eror inc++
find error inc++   include include int main() { int a[10],b[10],i,j,m,n; cout<<"Enter size of matrix"; cin>>m>>n; for(i=0;i<m;i++)//Initializing matrix a for(j=0;j<n;j
Error : javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
Error : javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope  I am getting following error in my struts-jsp proram for adding data to the database. 500 Internal Server Error
Some error find whats the problem
Some error find whats the problem  import java.io.*; public class Replace { public void main()throwsIoException { InputStreamReader = new InputStreamReader(System.in); BufferReader br=new BufferReader(z); System.out.println
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error Could not find Web services engine   Hi...: faultNode: faultDetail: {}:return code: 500 Error 500: WSWS3142E: Error: Could not find Web services engine. { http://xml.apache.org/axis
error
"+it); } } this is my program i am getting an error saying cannot find symbol class string
Error 500: WSWS3142E: Error: Could not find Web services engine. - WebSevices
Error 500 WSWS3142E Error Could not find Web services engine  Hi all, I am getting the following error.Error 500: WSWS3142E: Error: Could not find Web services engine. Please Help. Thanks in Advance
JSP cannot find symbol error - JSP-Servlet
JSP cannot find symbol error  Suppose-- we created 'a.jsp' in which we make a database connection... how to retrieve 'new' here... If I want to access the 'new' string within the form what should i do???  
could not find the main class programm will exit - error
could not find the main class programm will exit - error  when i tried to run the below mentioned programmed it gives a error states - could not find main class programm will exit. class Car { String name: String Color
Java error cannot find symbol
Whenever a Compiler does not recognize a class name, Java displays an error “cannot find symbol”. The reason behind cannot find symbol error... the java error cannot find symbol. In this example a class name 'cannot find
i cant find any compile time error but there is runtime error.
i cant find any compile time error but there is runtime error.  ...){ System.out.println("Error:connection not created"); }   Hi...("Error is:" + s.getMessage()); } } catch (Exception e
Java error cannot find symbol
Java error cannot find symbol       The java error cannot find symbol occurred when a Compiler...; the compiler does not recognize a variable e show you an error Java error cannot find
cannot find java.exe error while opening netbean5.5 - IDE Questions
cannot find java.exe error while opening netbean5.5  HI, 1)i am working netbean5.5 tool.I got the error of cannot find c:\programfiles\java... this problem? 2)while i am installing nokiamobiletoolkit, I got the error name
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?  run: java.lang.NoClassDefFoundError: filecopy...) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main
Java error cannot find symbol
Java error cannot find symbol In this section you will learn about "cannot find symbol" in java. Java cannot find symbol is a type of error occurs... the variable in use its trying to refer, then it will give a error cannot find symbol
Error 500-Server are not find the jar file in the program of upload the file - JSP-Servlet
Error 500-Server are not find the jar file in the program of upload the file  Hello Sir, your response: Hi friend, The 500 Internal Server Error is a "server-side" error, meaning the problem is not with your PC or Internet
plz check my codings are correct or not...There is an error..i cant find it..
plz check my codings are correct or not...There is an error..i cant find it..  import java.util.Scanner; public class Student { private String indexNo; private String gender; private char initial; private int mark1
java find the error6
Java find the error 6  <script type="text/javascript"> function validation() { var name=document.forms["insert"]["in_username"]; var age=document.forms["insert"]["in_userage"]; var address=document.forms
jsf error
jsf error  type Exception report message descriptionThe server encountered an internal error () that prevented it from fulfilling this request... find FacesContext root cause java.lang.RuntimeException: Cannot find
Can not find "org.apache.poi " - JSP-Servlet
Can not find "org.apache.poi "  Hi friend, Thanks for giving me a solution.Thanks a lot.I have executed the program but it is showing an error message that "org.apache.poi " can not be resolved. I have search it form
error come
error come  com.techi.bean.Employee cannot be cast to [Ljava.lang.Object;... i display the data action to jsp using set list atribute on action... form like ID: com.techi.bean.Employee@bf9ab9 please tell me how i find
Getting an error :(
Getting an error :(  I implemented the same code as above.. But getting this error in console... Console Oct 5, 2012 10:18:14 AM...:SpringMVC' did not find a matching property. Oct 5, 2012 10:18:14 AM
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??
this code gives addition of 2 numbers in j2me..but the code is not executing ..can u pls find out the error...??  import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class add1 extends MIDlet implements
SQL error - JSP-Servlet
="+id+" where msgid="+inc+"" ----------------------------------------------------------------------------- can work properly. Here, id and inc both are integer values. inc is the incremented value already existing in the database and id
Blackboard Inc. Develops Seamless Learning for iPhone Users
Blackboard Inc. Develops Seamless Learning for iPhone Users       Blackboard Inc. has developed free application for the iPhone users. With the use of this application
jav compolation error - Java Beginners
jav compolation error  find symbol error
error within servlet
error within servlet  List leagueList=(List).context.getAttribute("leagueList"); this is one line in my servlet code. but i have error with this line. The error is.... illegal start of type. Cannot find symbol. Symbol:variable
java compilation error - Applet
; } } Error is: Illegal start of expression Plz. find why am I getting this error...java compilation error  I am getting compilation error in the following code.: public void paint(Graphics g) { switch(screen
find factorial of any number using recursion
find factorial of any number using recursion  error in 14 line ; expected int rec( int a) ^ how to resolve this.please correct the code. import java.io.*; class Fact { public static void main(String[]arg)throws IOException
ISAPI Filter Error (
ISAPI Filter Error (  MFC: For ISAPI Filter geting error from Web service i.e ("Error:- InternetOpenUrl()") I have writen MFC application for ISAPI... but when we are doing load testing we are getting error from web service.Error
Java Error - Java Beginners
Java Error  Hello Sir ,How i Can solve Following Error Can not find Symbol - in.readLine(); Here Error Display at in  Hi Friend, It seems that you haven't defined the object 'in'.Anyways, Send your code so that we
compiled but showing below error
compiled but showing below error  Good morning, By using axis api, am getting the following error but the wsdl file is generating. what is the mistake I done. Unable to find required classes (javax.activation.DataHandler
remove given error
: cannot find symbol symbol : variable out location: class System System.out.println("Hello"); ^ 1 error
Find L.C.M. of two numbers in Java
Find L.C.M. of two numbers in Java Program In this section, you will learn how to find LCM(Least Common Element) of two integers.The least common multiple...) { return i * num1; } } throw new Error("Error"); } public static
Error in using jstl tags
/jstl/core" %> but still i'm getting the error "CANNOT FIND THE TAG LIBRARY...Error in using jstl tags  I'm trying to use jstl tags in jsp.i've included the jstl.jsr file in lib folder of my project and also written the foll
what is the error - Java Beginners
is creating the compile time error such as : - ? CANNOT FIND SYMBOL ? because you... the variable ? Private ? it will also create the error such as : ? CANNOT FIND...what is the error  What is the compile time error that i am getting
plz Help me find the correct programs answers
plz Help me find the correct programs answers   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff...) { System.out.println("Error:::" + e); } } }   For Bank Problem
Error In starting Glassfish in Eclipse.
Error In starting Glassfish in Eclipse.  Sir,I am new... glassfish in eclise,an error is raised and message is as follws : "error Launching...\oracle.eclipse.runtime.glassfish3.1.1.0\glassfish3\glassfish"): CreateProcess error=193
compile time error
error that "could not find or load main class fibbo" fibbo is my class name for find out the fibbonaci series.   import java.util.*; public class fibbo
compile time error
error that "could not find or load main class fibbo" fibbo is my class name for find out the fibbonaci series.   import java.util.*; public class fibbo
compile time error
error that "could not find or load main class fibbo" fibbo is my class name for find out the fibbonaci series.   import java.util.*; public class fibbo
output error - JSP-Servlet
error? How can i solve this problem? */ HTTP Status 500... report message description The server encountered an internal error... javax.servlet.ServletException: Wrapper cannot find servlet class numbers or a class it depends
jsp error - JSP-Servlet
, The 404 or Not Found error message is an HTTP standard response code indicating... could not find what was requested, or it was configured not to fulfill the request
Servlet error - Java Beginners
my own servlet program.. The error i'm facing is... exception javax.servlet.ServletException: Wrapper cannot find servlet class Ex1 or a class...:619) How can I solve this..??  Hi Friend, Find the below
Programming Error - JSP-Servlet
??? And when i tried its giving me error than cannot find variable.In
java error - Java Beginners
. But if I want to run that program the fetches me the following error. For example...(ClassLoader.java:316) Could not find the main class: Test. Program will exit. C... uninstalled jdk and NetBeans and reinstalled them, Then too its the same error
error detection - Java Beginners
me an error,of "(" or "[" expected. i tried to change everything i can to repair the error but got stuck. please help me to find out what must i do to repair...error detection   Hi Amardeep and all friends out
java compilation error - Hibernate
it it gives me exception saying that configure url cannot find and null ponter exception. actually it is unable to find hibernate.cfg.xml but i have put in it web
Log4j error - Log4J
Log4j error  Error while running tomcat server. SEVERE: Exception sending context initialized event to listener instance of class... Thanks   Answer: Find and copy commons-collections.jar, commons
error
error  while iam compiling iam getting expected error
an error - Java Beginners
detect an error after trying to compile and run them,howevre i can't find out where i made a mistake,thus pls try to find it and help me where i have gone wrong...( ); return findMax( root ).element; } /** * Find an item