|
|
#53 (permalink) |
|
Crumbly, but Good
|
Well, if you do (1 || 0), it returns 1, because || denotes a boolean OR operation, meaning that if either of the inputs is one, it returns one. When you put the ! on the outside of the parentheses, you're essentially saying !1, which means NOT one. Which, in binary, is zero.
__________________
|
|
|
|
|
|
#57 (permalink) |
|
Dixie Banana Bar
Join Date: Mar 2008
Location: Yup.
Posts: 296
Reputation: 15
|
What sort of environment is best to learn something like this? By environment, I mean, is it easiest with no distractions?
Also, this has been bugging me, but do even the greatest programmers have to write down notes and things of that sort, or do they just memorize it all? |
|
|
|
|
|
#58 (permalink) |
|
Crumbly, but Good
|
I find that having a fewer distractions helps, but I still manage to be able to stay on MSN and get stuff done.
As for notes, generally, you remember the basics of the language, and you can usually get a feel for most of the specifics, but for using libraries like OpenGL or SDL or something, I don't think that anyone memorizes all the function calls; I routinely look up functions online to see what they do and how to call them. Marking down actual notes isn't something I usually do, unless I'm working on an underlying math problem that the game needs solved, and for that, I just use scrap paper, but beyond that I don't really write much down.
__________________
|
|
|
|
|
|
#59 (permalink) |
|
Dixie Banana Bar
Join Date: Mar 2008
Location: Yup.
Posts: 296
Reputation: 15
|
http://www.cprogramming.com/tutorial.html#c++tutorial - I am trying to follow this site, but it seems to just jump right in there, even when starting with the basics. I am not quite sure how I could put some of this to practice, once I can actually comprehend it.
|
|
|
|
|
|
#60 (permalink) |
|
Phantom's Freak
Join Date: Mar 2009
Posts: 2,508
Reputation: 87
|
How long would you say it would take for a beginner to remember it all by heart? I don't play much games anymore, so I have quite a but of free time.
Also, here's a video tutorial on how to program with C++. He makes it so easy, I could do it, and all I knew at the time was HTML, and Python. http://www.youtube.com/view_play_lis...41C2C1F671AEF6 Isn't Java just a simpler version of C? Last edited by Mime Taxidermy; 07-11-2009 at 01:43 AM. Reason: -=Doublepost=- |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|