prog.cpp:10:5: error: expected unqualified-id before ‘{’ token
{
^
prog.cpp: In function ‘int main()’:
prog.cpp:32:23: error: invalid conversion from ‘int’ to ‘char*’ [-fpermissive]
strcpy(A.name = 10);
^
prog.cpp:32:23: error: too few arguments to function ‘char* strcpy(char*, const char*)’
In file included from prog.cpp:2:0:
/usr/include/string.h:125:14: note: declared here
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^