You have a char*, then how the f* can you get this error:
''char [10]'' to ''struct test_s''
classes in an array of a structure
Anonymous: In my experience, VC give messages about char[10] conversion errors, when it has a string constant that it cannot convert, why it is size 10 i have no idea, but it is like this.
char *str[50];
double x;
//this line
str = 4.5;
// would give an error about double to char* conversion
//and this line
x = "bob";
//would give an error about char[10] to double conversion
get it?
char *str[50];
double x;
//this line
str = 4.5;
// would give an error about double to char* conversion
//and this line
x = "bob";
//would give an error about char[10] to double conversion
get it?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement