diff --git a/each_word_print.cpp b/each_word_print.cpp new file mode 100644 index 0000000..fd32b18 --- /dev/null +++ b/each_word_print.cpp @@ -0,0 +1,18 @@ +#include +#include +#include + +using namespace std; + +int main(){ + string sentence="Hi I'm Adi welcome to my repo"; + + istringstream aa(sentence); + string reader; + + while(getline(aa, reader, ' ')){ + cout<< reader << endl; + } + + return 0; +} \ No newline at end of file