When the CS202 student conveniently forgets parenthesis at the top of their function
int main /* what is missing here ? */
{
...
}
by /dev/null March 14, 2003
A logic error that appears to be catastrophic, but is very easy to correct.
#include <iostream.h>
void main()
{
int num;
cout<<"Do NOT enter the number 1:";
cin>>num;
if(num=1)
cout<<"You idiot! I said NOT to enter the number 1!\n";
else
cout<<"Good job!\n";
}
by aero March 14, 2003

Free Daily Email

Type your email address below to get our free Urban Word of the Day every morning!

Emails are sent from daily@urbandictionary.com. We'll never spam you.

×