← Older edit
Newer edit →
856 bytes added
15:04, 13 May 2010
no edit summary
Notes for the first class:
In Visual Studio: Click on Projects - Other Languages, Visual C++ win32 and win32 console application
Application settings - console application and empty project
There are two types of variables: integers and floating points
Integers: long - 4 bytes, short 2, int 4 (or 2 or 8), char 1, long long - 8, pointer 4
Floating Points: double, float, long double
Floating points have precision, which means they are not precise. NEVER compare two floating points for equality. It won't work. THe way to do that is deduct one from the other. If it is 0, they are equal.
operators: assign and return a value, so j= k+2 is the same as writing j = 2; the statement k+2 returns a value of 2 to the variable j.
conditions: !j (turns the variable j into a condition) if j is 0 it will be true (or 1) else it will be false (or 0).
Retrieved from "
SICT AR Meeting Area
get involved with CDOT
as a Student
as an Open Source Community Member
as a Company
Real World Mozilla
Course Project List
Potential Course Projects
View user groups
About CDOT Wiki