3 ms·
A quick introduction to C++ for everyone In a text editor, create a file called foo.cpp with the contents void main(){int x,y=4;x=y;} At a unix command promp
by ctdonath 15y ago
A quick introduction to C++ for everyone
In a text editor, create a file called foo.cpp with the contents
void main(){int x,y=4;x=y;}
At a unix command prompt type
gcc foo.cpp
./a.out
That creates sort of a couple post it notes labeled x and y, with the number 4 on the y paper. Then it uses the equals sign (which is stupid because it doesn't compare anything, it copies numbers) to put what's on y onto the x paper.
Cool eh? Go Google "c++ keywords" for more you can do.
</sarc>