Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Split in C++ (Simple)
//Author: Akshay AS //akshay.suryanarayan@gmail.com //TASK : convert "akshujai <3 forever" to "iajuhska 3< reverof" #include "bits/stdc++.h" using namespace std; int main() { string str; char delimiter=' '; getline(cin,str); vector<string> v; istringstream f(str); string sub; while(getline(f,sub,delimiter)) { v.push_back(sub); } for(string i:v) { reverse(i.begin(),i.end()); cout<<i<<" "; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Binary search on sorted array
sin_approximation
Proyecto1
CPP Multi Inherit
inheritance test
MeanSDVar
multiply two numbers (previous)
introduction c-types
multiply_without_asterisk
Aplicatie-Proiect
Please log in to post a comment.