I like the update only part of the screen idea. But its all in text, so I would have to use \b and as far as i know that only works if your on the current line. And that could get very messy very...
Type: Posts; User: s_jsstevens
I like the update only part of the screen idea. But its all in text, so I would have to use \b and as far as i know that only works if your on the current line. And that could get very messy very...
right now I am working a space invaders type game. The initial screen is read from a text file that looks like
1111111111111114
1000000000000014
1000000000000014
1000000000000014...
The actual code is over 3000 characters , I am just working on the movement system as of now. And right now when I hit the left movement key, it keeps on moving until I change the direction.
*edit*
swoopy has posted the code already.
in other words its acting like a toggle switch without the off command.
kbhit is a step in the right direction. But now if I hit the left key, my ship keeps moving left until I till it to go somewhere else.
aside from learning another language, any other ideas?
in visual basic there is a keypress command, does C have a similar command that doesnt halt the program?
I am in the process of writing an old invaders game of sorts. When I ran into a problem, I was using
key = getch ( );
switch ( key )
{
case '4':
//go left
break;
thanks.. big help
and I would make a deck... how?
I am working on my own project that is eventually going to simulate a poker game, and give each player their % of winning.
But I am a rather new programmer, so I am going to start out small. I am...
I took a programming course at my college and we used SSH Secure Shell to program in C. It got me really intrested and now I am starting to program at home. Problem is my home computer has Microsoft...
you would be suprised on how that does not help.
tokstring ( void )
{
FILE * input, * east, * west;
char string [ 80 ];
char token;
char first;
char last;
char team;
int number;
int points;
forgot,
FILE * input, * east, * west;
updating post now
Ok, I declared string, and I added *'s in the declarations. I will update post and errors.
I am trying to read from a file that looks like this
Joseph Stevens Boys 11 20 5
Jamie Stevens Girls 22 18 6
Tony Waters Boys 33 22 7
Sally Smith Girls 44 33 8
when I read from this file I...
you mean just put a * in front of it?
Tried that and it didnt change the warning messages
My program should at the moment read from a file called input, create two new files called east and west. And then print Roster number x for each player. Right now I am working on how to break up...
would you like me to post it somewhere else?
another forum? :-S
My program should at the moment read from a file called input, create two new files called east and west. And then print Roster number x for each player. Right now I am working on how to break up...
and you use strtok how?
Isnt there a way to break up a string into tokens?
how in the heck would you ignore spaces after a space?