| ? posted by OtZman |
|
I've never heard of a loop before. I'm totally new to programming, but I thing I start to understand what a loop is, but I don't get how to make letters like ?, ?, ? to appear on my screen |
How to make those appear on purpose or on accident.
On accident it's just random chode(garbage) that was picked up in the memory that that was grabbed and it interprets it as characters.
but yeah, to see if it's in ASCII, use the for loop and modify the output statement slightly to see the corresponding numbers
cout<<"\n"<<(char) i <<'\t'<< i;
Oh, for single characters and escape sequences(anything that starts with \), you can just use a single quote.
To print out the character '\', you'll have to do '\\' to get the compiler to shut up about illegal escape sequences and stuff, even when you send in directory strings as well.
Oh yes, the C++ Primer Plus is definitely an awesome book, it really covers just about everything in C++ and even goes a bit into some data structures like Linked Lists. If you can afford the Fourth Edition, go for it.
Dammit, I'm going on a ramble again
, that's what you get for doing nothing but programming since May. Right now I'm trying to understand how BSP trees work to see if I could use one for the game engine I'm writing for my group's final project.



It's totally illogical. The numbers seem to have nothing to do with the letters. I also checked
[addsig]