Re: Redisplaying the Window
Re: Redisplaying the Window
- Subject: Re: Redisplaying the Window
- From: Ricky Sharp <email@hidden>
- Date: Sat, 16 Dec 2006 09:00:15 -0600
On Dec 16, 2006, at 7:15 AM, Adam wrote:
Ok, I think I have it now... nope... in this code:
void kybrd(unsigned char key, int x, int y)
{
switch (key)
{
//...
case 'a':
{
srand (time(NULL));
for (int looptemp = 0; looptemp <= 5; looptemp++)
{
arr_tetris_screen[rand()%7][rand()] = box;
}
redisplay();
}
default: exit(123);
}
}
This code keeps giving me "exit code 123" when I press 'a'. Any
thoughts? Caps lock is not on... Thank you both for helping!
As mentioned by others, this list is for Xcode development. Basic C
or other language questions should be posted in other forums.
Hint: Look at what the keyword 'break' does.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden