Minor Logic Error

What is Minor Logic Error?


1.

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! ";

else

cout<<"Good job! ";

}

See aero

2.

When the CS202 student conveniently forgets parenthesis at the top of their function

int main /* what is missing here ? */

{

...

}

See /dev/null


11

Random Words:

1. Completely under the influence from one or a combination of drugs enough to induce massive feelings of euphoria. Mike took some authent..
1. Either a question ending in a period or a statement ending in a question mark. A real-life example of a questence: I tried printing th..
1. when a person is both talking a lot, and not quite making sence, often happens while a person is under the influence of a substance. Du..