classes in an array of a structure

Started by
10 comments, last by Densun 24 years ago
You have a char*, then how the f* can you get this error:

''char [10]'' to ''struct test_s''
Advertisement
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?

This topic is closed to new replies.

Advertisement