>char [size] name;
Good suggestion, bad code. You seem to be mixing and matching features of C++ and Java to create something completely incorrect for both. Try this instead:
char name[size];
Where size is a suitably defined constant value, in this case 5.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
*sigh* If I had a nickel for every time someone left a newline in the stream with cin>> or scanf, I would be rich by now.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>Can you tell me in very basic C++ words.
Enter get stuck in cin, break rest of program.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401