Page 1 of 1
Dev-cpp compiler
Posted: Sat Oct 15, 2005 1:27 am
by jonas
When I try to make a command prompt program in Dev-cpp the command end1; doesn't work! Does anyone know why?
or another command to make it start another line?
Posted: Sat Oct 15, 2005 5:16 am
by AndyCR
i believe it goes like this:
after you write stuff in "cout << "Hello!";", insert \n where you want a newline, example:
will turn out like this:
Posted: Sat Oct 15, 2005 12:21 pm
by QuestOfDreams
The manipulator is endl not end1, which does nothing else but calling put('\n') and flush()
Posted: Mon Oct 17, 2005 7:09 am
by jonas
Thanks I'll try it.
heh
Posted: Tue Oct 18, 2005 3:24 am
by Voltare
i'm messing around with wxdevc ++, which is dev c++ with wxwidgets inserted..........i'm using it to try to convert the mfc crap in rf and genesis to wxwidgets, and possibly, a form useable by linux........
Posted: Thu Oct 20, 2005 12:17 am
by jonas
That would be nice! For some reason end1 or endI don't work even though the tutorial that came with dev-cpp said to use it!:? but I found out that the "\n" function works the best.
Posted: Thu Oct 20, 2005 1:16 am
by QuestOfDreams
it is neither end1 nor endI, it is endl - that last character is a small L - and means endline
I don't have the devcpp compiler right here but I'm pretty sure it works
btw "\n" means "newline" and it is not a function but an escape sequence
http://www.cprogramming.com/
Posted: Thu Oct 20, 2005 4:44 pm
by GD1
LOL, that really takes me back. When i started programming in Pascal, it took me a good three days to figure out I was typing an i instead of an l, since they look identical in certain fonts. I hate programming.