|
|
back to boardMind the spaces! If you use cin >> s1 The spaces will be ingnored! I use this to get AC while (cin) { c = ''; c = cin.get(); if (c != '\n') s += c; } hope I can help you. hi write this statement while(getline(cin,s1)){...} You can also use cin >> noskipws; After this spaces won't be ignored. Edited by author 22.11.2010 09:46 |
|
|