Go to Post How do you earn yourself 500 PM's, 200 e-mails, 100 replies to a post, and an instant 5 to 6 bars in rep? If your name is Grant Imahara, make yourself known to the Chief Delphi community. - Andy Grady [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 12-05-2010, 22:12
Chris27's Avatar
Chris27 Chris27 is offline
Registered User
AKA: Chris Freeman
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Mountain View
Posts: 196
Chris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant future
Re: Collaborations and Alliances

As a CS student at CMU, I've always been told that

Code:
if(isSomeCondition == true) { ... }
is horrible style, and this really should be written as
Code:
if(isSomeCondition) { ... }
Code:
if(isSomeCondition = true)
Is "correct" syntax and by itself will not cause a run time error. However this will cause your program to behave incorrectly (for instance the if statement will always evaluate to true) which could definitely lead to a run time error if e.g.

Code:
if(somePtr = NULL) { ... }
else { 
  somePtr->someField = someValue;
}
I assume this is what you meant apalrd?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any East Coast Collaborations? Akash Rastogi Team Organization 47 25-06-2008 19:22
Collaborations hayakuneko General Forum 46 29-03-2006 11:37
How to start collaborations with teams? Billfred General Forum 3 22-10-2005 21:24
College/High School Collaborations? Charlie B General Forum 6 06-10-2003 12:05


All times are GMT -5. The time now is 16:30.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi