You are trying to assign to arrays. Assuming that you do not actually want to initialise the array of structures (i.e., when defining it), you should use strcpy() to copy over each string literal's contents to the respective member.
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar
You are trying to assign to arrays. Assuming that you do not actually want to initialise the array of structures (i.e., when defining it), you should use strcpy() to copy over each string literal's contents to the respective member.
Hi....
Thank you for the help!!!
I added the strcpy() function, it is solved, but it is getting new problem now.....
Warning: warning C4024: 'strcmp' : different types for formal and actual parameter 1
warning C4047: 'function' : 'const char *' differs in levels of indirection from 'ch
The strcpy is also giving one warning Warning: 'strcpy' was declared deprecated
"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman
Bookmarks