Originally posted by [GDI]Raptor
main (int) {
while(1) {
PWC++
}
}
*/
*/
main (int) {
while(1) {
PWC++
}
}
*/
*/
That wont compile.... you forgot to declare your variable!!!! And no simicolon!!!! Also using "true" not "1" is easier to read when debugging... And whats with no comments?!?!?! Bad coding practices!!!! Lastly because there is no return value pass the value in by reference.
/*******************************************
* PWChelper.cpp
* Description:
* The prrrpose of the program to to realize the
* accurate PWC for a given member.
*
* Use:
* main (currentPWC);
*
* Arguments:
* PWC: an integer value of the current Post Whore Count.
*
* Return Value: None.
*
********************************************/
main (int *PWC) {
while(true) {
PWC++;
}// end of the while loop
}// end of the main function
Please use good coding habits!!!!
Jeff
Comment