How do you make symbols (such as ©) to display in a program? I tried adding it into the code, but it s hows up a small upsidedown L. Is there some code you need to put instead of the symbol to make...
Type: Posts; User: DZeek
How do you make symbols (such as ©) to display in a program? I tried adding it into the code, but it s hows up a small upsidedown L. Is there some code you need to put instead of the symbol to make...
Problem solved. I saved it as "guess1.0" and the period messed it up. I resaved it without the period, and it creates the exe. :o
It works, but I just can't seem to find the exe. All the other programs I compiled had the exe in the same folder as the script, but this one doesn't...
Ok, so now that works, but I seem to be having problems with my compiler :( . Whenever I compile, it should create a new .exe for my program, but now it doesn't create it (it used to). I am using Dev...
I'm confused about the code because the book I was using to learn C++ seems WAY different (and I'm a newbie :D).
I tried cin.get(); but it still closes after you guess a number (cin >> guess; ). ...
Has C++ changed a lot recently? Because I don't understand most of that....
I tried that and compiled it and it works. I add an if statement and a few "cin"s and "cout"s ( :p ) to get this:
...
So what should I change? What is the EXACT code I should use?
I tried all of that and it still doesn't work... This is starting to get annoying...
EDIT: Now it compiles the program but doesn't create an exe. This is getting frustrating.
Ok that is fixed, but I still have a problem. Whenever I try to compile this program, my Dev C++ compiler says "unable to run program file"
I think I did everything correctly....whats going on?
Thanks, that seems to have been what I needed. However, now I seem to be having compiler problems. I have done everything as I should have, but my Dev C++ Compiler is unable to compile my program.
...
I am creating a simple program which is in need of a simple random number generator. How would I make it so that it chooses a random number between 1 and 10?
Yeah, I kind of figured that out. :p Sheesh, I'm not that bad at this stuff.
;)
Bleh, I'm confused with all this stuff. :D
I plan to move on to something WAY less difficult. Something which I can mess around with and to use to learn the basics. So, thanks for all your help...
Nah, that doesn't work. I cleared the code of all the console stuff, so it just opens a window. So now lets get back to my original question. When I run my program to create a window, the window...
How would that work? Do I just remove the int main(void) code or what? It's still very confusing to me... I guess I started on something too complicated :D .
:D It could have. :p
Then how could it work?
Question Changed:
I added some code for a game to run in the window, but errors show up when I compile.
I'm still trying out random codes from my Windows Game Programming for Dummies book. I created a program that creates a window on my Dev C++ compiler and I added the code for a simple spaceship game....
Does anyone know how I could make it so that the code I used (check the first post) includes the option of going up and down?
Thanks for all your help everybody.
I'll just keep messing with it. :D
EDIT: why isn't it possible to have it move on the y axis?
More questions:
I am trying to add the option of moving up and down (change in y), but I can't seem to figure out how to do it. Try to give me hints, so I can figure it out. ;)
Also, It only...
Sweet!
Thanks for the help.
:D :D
I am a simple newbie at C++ but im eager to learn. I tried to use the sample code from a C++ book (windows game programming for dummies) and I compiled it on my Dev C++ compiler. After fixing some...