MAMEWorld >> The Loony Bin
Previous thread Previous  View all threads Index   Flat Mode Flat  

URherenow
Reged: 09/21/03
Posts: 4261
Loc: Japan
Send PM
quick programming question
11/12/15 03:29 PM


In my current class, we are required to assess our own code, as well as 2 random other students' code. It is pseudo code, so it doesn't really conform to a specific language, so I must ask: Will the following work in ANY language?

If Variable NOT == 0

instead of

If Variable == NOT0

or whatever the format is supposed to be... Variable == NOT(0), maybe?

I know the simple thing in this case is !=, but the chapter for this assignment introduced AND, OR, and NOT, and data validation, and students are encouraged to use the new concepts in every chapter's work.

Within an If statement like that... would it crash the program or just simply not validate the data as you intended?


Just broke my personal record for number of consecutive days without dying!







Entire thread
Subject Posted by Posted on
* quick programming question URherenow 11/12/15 03:29 PM
. * Re: quick programming question Robbbert  11/13/15 02:56 AM
. * Re: quick programming question TriggerFin  11/13/15 08:04 AM
. * Re: quick programming question URherenow  11/13/15 11:22 AM
. * Re: quick programming question Pi  11/12/15 05:36 PM
. * Re: quick programming question krick  11/13/15 05:29 AM
. * Re: quick programming question RATMNL  11/12/15 03:57 PM
. * Re: quick programming question URherenow  11/13/15 01:56 AM

Extra information Permissions
Moderator:  GatKong 
0 registered and 124 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1566