How do I cin and cout char arrays?
PHP Code: char c[20]; cin >> c; cout << c; Note that this only allows 19 characters and does NOT check for overflow, so I rather see you using the Standard Library: PHP Code: include <string> string s; cin >> s; cout << s;
char c[20]; cin >> c; cout << c;
include <string> string s; cin >> s; cout << s;
Jop - validweb.nl Alcohol doesn't solve any problems, but then again, neither does milk.
Forum Rules