what is it you want to do?
does include.h pull in namespace std? This is likely your problem, if it does... you need to put std:: on the items you used, or pull in the part of the namespace you need eg using std::cout
also if include defines things like cls, you need it. That is not a standard c++ thing. I don't get what you want to do with the include part.
your loop is like a pop quiz on convoluted code to see if students can follow it.
changing the loop variable in the loop all over the place in random ways makes it easy to inject a bug and difficult to find the bug.
remember too that [size] isnt correct. c++ indexes from zero. if a word has 5 letters, they are [0] through [4] (0,1,2,3,4) IS 5 THINGS. line 14 is probably wrong.
it looks like you have a bunch of code to do this, but again, I am half guessing due to the code being funky:
1 2 3 4 5 6
|
string s = "hello world";
char tmp = s[0];
s = s.substr(1,s.size()-1);
s+= tmp;
cout << s << endl;
|
is ^^ that what you wanted to do?