I have to make a program and I have absolutely no idea how to go with it. What is excepted of me is to have a entered number, become fragmented, and then resembled.
Ex. 1394--> 1 3 9 4 --> 1394
Any help is appreciated, I've been doing fairly well in the class just here I have no idea where to go.
What I meant is that you stated you need to operate on numbers, but splitting particular charactes in a string is easier for chars, even if they look like digits:
For the cout and cin, it give me the error that they have no storage class or type specifier. For both the << and >> it says it needs a declaration. The for also needs a decleration.
So i'm still not sure if this is the type of thing I would need because it doesn't work. I've been trying in this course, except the teacher been explaning everything in french and I have yet to grasp most of the concepts. Any help really is appreaciated thought.
That's because it is not entire program - it is body of main function, and it is expected, that you include iostream header, as well as use usingnamespace std;.