thanks! looking at this code is realy helping me learn how to do stuff...
}
int i;
void Shootstuff();
for(i = 0; i < 42; i++)
{
shootStuff();
}
//Declare some functions
void shootshivans();
void shootntf();
void shootwingmen();
//Give ourselves a variable
int a = 2;
switch(a)
{
case 0: //If a is 0...
shootshivans(); //...shoot down shivans!
break; //We're done, jump to the end of the code block.
case 1: //If a is 1...
shootNTF(); //...now ya gotta shoot down NTF ships!
break;
default: //If none of the above match...
shootwingmen(); //...shoot yur wingmen....0_0.
//Since a IS 2, we'll be shooting down alpha 1's wingmen
break;
}
----this is part of nether code blocks, but put in the post for distinction------------
struct ship
{
ship name[alpha 1];
unsinged int shields;
unsned int weight;
};
intkaamosshootship (ship alpha_1)
{
for(alpha_1.shields > 0; alpha_1.shields--);
}
kaamosshootship (terranship);
int kaamosshoot ship (ship *alpha_1)
{
for (;alpha_1->shields > 0; alpha_1->shields--);
}
did i mess up?
you have a for loop which increments i a total of 41 times, but i is not referenced in the loop. you can also declare i in the for itself:
for(int i = 0; i < 42; i++){}
but either way, all you've managed to do could be done with
int i = 41;
your compiler is probably going to scream at 'unsned' and 'unsinged' being undeclared identifiers, might want to add some letters/rearrange them

the last 2 functions would be more clear as while or do-while loops instead of a for, though the for loop does work
oh, and you don't need a break after the default of the switch