what is tis error and how can i resolve it

can some 1 tell me wad error is tis...

d:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(521) : error C2059: syntax error : 'constant'
1>d:\program files\microsoft visual studio 9.0\vc\include\cstdlib(31) : error C2039: 'system' : is not a member of '`global namespace''
1>d:\program files\microsoft visual studio 9.0\vc\include\cstdlib(31) : error C2873: 'system' : symbol cannot be used in a using-declaration



my programe is tis...

# include <iostream>
# include <iomanip>
# include <cstdlib>
using namespace std ;

int main (void)
{ int a[5][3] , b[3][5] , c[5][5] ;

cout << "The first 5X3 matrix"
<< endl ;
for (int i = 0 ; i< 5 ; i++)
for (int j = 0 ; j<3 ; j++)
{
cout <<"Please enter digit for -->"
<< i
<< j
<< endl ;
cin >> a[i][j] ;
}
cout << endl ;
cout << "The second 3X5 matrix "
<< endl ;
for (int i = 0 ; i < 3 ; i++)
for (int j = 0 ; j < 5 ; j++)
{
cout <<"Please enter digit for -->"
<< i
<< j
<< endl ;
cin >> b[i][j] ;
}
cout << endl ;
system ("pause") ;
return 0 ;
}
Weird, it is working fine in my system. What u want is to make the system wait for the user to press a key, before the program terminates, right?? So if this does not work, may be u can use a getchar() in its place.
Are you sure your install is not corrupted?

Try this:

1
2
3
4
5
6
7
8
9
#include <iostream>
#include <iomanip>
#include <cstdlib>

using namespace std;

int main()
{
}


If you still get compile errors then you need to reinstall the compiler.
Topic archived. No new replies allowed.