User profile: ajh32

User info
User name:ajh32
Bio:I'm a Senior Software Engineer currently working in the UK financial sector. I program primarly in MFC C++, with experience in STL, COM, XML, XSLT.
History
Joined:
Number of posts:626
Latest posts:

Can't solve a struct init-declarator error
If you were to indent your code your might see the various problems you had. You declare a struct ...

Why the size of array "g1" is 6 after strcpy ? It should be 9
The sizeof(g1) is 6 and will not change. If you were to use the safe string copy on line 5: [code...

Vector Program - Help needed!!
How stupid is that to hold 3 fields in a single string, i.e. Firtsname Lastname Phone num...

Polymorphism with virtual function
Well, in your main() function you have declared a variable for a pointer to an Animals instance 'a' ...

print first name
Because the escape char for a newline is a backslash and n not forward slash; [code] cout<<"Please...