Current location - Quotes Website - Personality signature - Error C4430 in visual studio20 13: missing type specifier-assumed int. Note: default int is not supported by C++
Error C4430 in visual studio20 13: missing type specifier-assumed int. Note: default int is not supported by C++
Main () should be written as int main ().

The standard signature format of the main function of visual studio20 13 standard is int _ tmain (int argc, _ tchar * argv []).

Modify the program as follows:

int _tmain(int argc,_TCHAR* argv[])

{

int i,j,k;

printf(" \ n ");

for(I = 1; I<5; I++) /* The following is a triple cycle */

for(j = 1; j & lt5; j++)

for(k = 1; k & lt5; k++)

{

If (me! = k & me! = j & amp& ampj! = k) /* Make sure that I, J and K are different from each other */

printf("%d,%d,%d\n ",I,j,k);

}

getch();

}