123456789101112131415
#include <iostream> int main() { using namespace std; char word[256]; char wordtoo[256]; cout << "Enter a word>"; cin.get(word,256); cout << word << endl; cout << "Other word>"; cin.get(wordtoo,256); cout << wordtoo << endl; return 0; }
#include <iostream> int main() { using namespace std; char word[256]; char wordtoo[256]; cout << "Enter a word>"; cin.getline(word,256); cout << word << endl; cout << "Other word>"; cin.getline(wordtoo,256); cout << wordtoo << endl; return 0; }