| Author: Anonymous | Language: cpp |
| Description: No description | Timestamp: 2007-10-17 12:50:48 -0400 |
| View raw paste | Reply |
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main() {
- string line;
- string reviseline;
- getline(cin,line);
- line+=" ";
- while (line.find(" ") != -1)
- {
- reviseline=line.substr(0,(line.find(" "))+1)+reviseline;
- line.erase(0,(line.find(" "))+1);
- }
- cout << reviseline;
- return(0);
- }
| View raw paste | Reply |
