A while loop... like this?
char keyInput = 0;
keyInput = kbhit();
while (keyInput != 'x')
{
Type: Posts; User: Nuke
A while loop... like this?
char keyInput = 0;
keyInput = kbhit();
while (keyInput != 'x')
{
Works fine on my computer. You should add a background image so you don't feel like you're floating in space... but other than that pretty good. :)
yeah the regular edit.com that comes w/ dos should work fine.. wow. I can't believe you've managed to use edlin to make C programs. I give you some major respect for doing that. :)
Awesome game! When I did the LB though, I found it hard to see the enemy bullets and usually got shot up pretty bad while it was going on... Is there anyway to make their bullets more visable during...
So, what happens after the yPosition is off the lower part of the screen? Will that crash it? or will it wrap up again to the top?
Yeah, I got some errors too when I was trying to compile, but then again I'm using Dev-C++...
Anyway, the game is awesome. :) The only thing that got me is that all movement pauses while a ninja...
Wow, that is so much more complicated that Dev-C++.. With that after you select "Win32 console" in new project it already makes a blank source for you and opens it.. Then your ready to start.
I use the web for reference... :) , I would get a book.. but then there's that issue of "money". lol.
I use "getch()" as a pause, "system("pause")" I heard isn't a good idea to do. (I heard system commands in general were a bad idea :) )
I read all the posts, and I found them to help ME understand linked lists better and I didn't even ask the question! :) A lot of people did practically post what you had to do. I'm sorry you feel...
Also \n's would make it look better, so that it's not just attempted to be placed on one line....
Isn't it also in stdlib.h?
anyway, isn't it easier just to return 0? :confused:
I usually do:
average = (double)sumOfValues / (double)amountOfValues;
or something like that. It works fine, I never tryed doing it the other way...
Wow, really cool program! It reminded me a little of a dream I had once... errr, maybe that's not a good thing. :)
That site is awesome! Thanks for the link! :D
I read a book that referred to the addresses in hex form, yet from my 486 to my 1.8Ghz Pentium 4 I've yet to recieve a hex value when I print out the address. If it's not that big of a deal that it's...
I suggest making it a console application, I made a simple text editor in that and that wasn't that hard. Then like everyone said, after a while move to Windows. (something I'm not up to in skill...
I like just using 2 spaces to indent. You don't need to use the tab key or deal with any problems with that in general and it's not a hassel to hit the space bar twice. :D
As for the 24 volume sets going for $1000+, I think those are more geared towards libraries and buildings of the like... I personally don't know anyone that owns (or can afford) the paper version. :D
I program in C++ at home and stuff, but in school the only class my High School offers is Java programming. The basic syntax is almost the same... if statments, switch statments, function calls,...
I never noticed you talking too much before.... I wouldn't worry about it.
You can always just click the close button when they pop up....
lol. That was good.. I don't want to ruin it for anyone so I won't say anything about it. :)
You could also do the above w/o using a seperate function:
main()
{
char input; //declare
input = getch(); //get character....
switch (input) //switch statement block
Yeah, I'm using C++ to create this program (dev-C++ to be exact). I've been learning and learned most of what I know from a C programming book. I've yet to delve into a lot of the things C++ has to...