I've never coded before, and I'm taking my first intro to C++ class.
I'm just going to admit that this is a homework question. I'm not asking for the solution, because I've already tried to create my own, but I would like some advice. I need to create this rocket: http://i46.tinypic.com/mucd0.png.
My program just says it's "1 Up-to-Date" instead of "1 Success" when I try to compile, and the console isn't displaying anything at all.
I'm too new to even proofread my own work or understand what this code should look like, so I may be totally off. I don't even know what errors to look for. Could someone please help me identify what might be causing the issue, or at least point me in the right direction?
I don't know why it compiles in your case actually, I would assume it gave you some errors to work with, as it did with me :P
first of all:
the backslash \ isn't really read just like that. The compiler expects a symbol to come right after the backslash, and together they will be seen as 1 char of some sort. Just like the newline you use several times (\n)
to get around this problem, just type 2 backslashes:
the first backslash tells the compiler there is a special symbol coming, and the second one is the special symbol
string space1(' ');
you should use:
string space1(1,' ');
string space1(" ");
(this is an error that you have on several lines)
I don't really know the difference between " and ' myself, so if anyone else wants to explain that, I'd be very happy :D
The reason why this gives you an error is because your arguments don't match with the expected arguments :)