Meet cGull. He's gonna be the main character in my Porn and Object Oriented Programming (P.O.O.P.) teaching method.
first lesson.. we're gonna learn how to moan "hello world". then we'll move on with basic datatypes, and declaring variables.
programming classes are 50% moar fun now. 83~
first lesson.. we're gonna learn how to moan "hello world". then we'll move on with basic datatypes, and declaring variables.
programming classes are 50% moar fun now. 83~
Category All / All
Species Avian (Other)
Size 702 x 944px
File Size 176.9 kB
Listed in Folders
no.. the double there is not a function... we're just declaring a variable and assign the datatype as 'double', with the name 'length', and initial value of 9.2..
oh murr.. what a nice lips you have.. keep working on it and you'll get free A's in my class. >8D
oh murr.. what a nice lips you have.. keep working on it and you'll get free A's in my class. >8D
Ooooo, Putting Double length is parenthesizes would help show that its one variable, or eliminate the chance of confusion by replacing the term "double" that actually has mathematical meaning outside of this equation.
Mmmmmmm is there extra credit when I'm done with this Assignment Professor ? :3
Mmmmmmm is there extra credit when I'm done with this Assignment Professor ? :3
For numbers, you can declare it to be a number of things, most commonly it either being int (integer) or double. (the other two are long and float).
Integers can only hold whole numbers (1, 2, 3) while doubles can hold decimal numbers (1.1, 2.6, 9.4, etc). Long and float are simply versions of these that have even larger number spaces (can be more precise, etc... basic programming you don't need to deal with this).
So with: double length = 9.2; ...I am declaring a new variable of name "length", type "double" and value of "9.2"
If you wrote int length = 9.2; you would get a syntax error and won't be able to compile your program.
You can also declare things like:
double length;
length = 9.2;
...just depends on your situation/etc.
Integers can only hold whole numbers (1, 2, 3) while doubles can hold decimal numbers (1.1, 2.6, 9.4, etc). Long and float are simply versions of these that have even larger number spaces (can be more precise, etc... basic programming you don't need to deal with this).
So with: double length = 9.2; ...I am declaring a new variable of name "length", type "double" and value of "9.2"
If you wrote int length = 9.2; you would get a syntax error and won't be able to compile your program.
You can also declare things like:
double length;
length = 9.2;
...just depends on your situation/etc.
Yeah :D
Start hardcoding noobs :P
just joking :D no one uses ANSI C for programming these days :D only place where cou can find is on win XP in Borland C++ v3 :D
i'm doing onlympics so i know it :D
the worst part was that that noobs had only gnu c (gcc) compiller so i couldn't compile my program and had to improvise :D
btw i was 4th
Start hardcoding noobs :P
just joking :D no one uses ANSI C for programming these days :D only place where cou can find is on win XP in Borland C++ v3 :D
i'm doing onlympics so i know it :D
the worst part was that that noobs had only gnu c (gcc) compiller so i couldn't compile my program and had to improvise :D
btw i was 4th
C++ is still a pain! =3=
#include <iomanip>
#include <fstream>
using namespace std;
void alternate (string);
ifstream skunk;
int main()
{
string bird, bend_over;
skunk.openpants ("skunkcock.txt")
skunk >> skunk cock
while (skunk)
{
bend_over =alternate (Fbird)
}
cout << "fuck C++" << endl;
return 0;
}
void alternate (Fbird)
{
while (Fbird=!bentover)
tell him to bend over
else
hump him
}
output:
"fuck c++"
#include <iomanip>
#include <fstream>
using namespace std;
void alternate (string);
ifstream skunk;
int main()
{
string bird, bend_over;
skunk.openpants ("skunkcock.txt")
skunk >> skunk cock
while (skunk)
{
bend_over =alternate (Fbird)
}
cout << "fuck C++" << endl;
return 0;
}
void alternate (Fbird)
{
while (Fbird=!bentover)
tell him to bend over
else
hump him
}
output:
"fuck c++"
FA+

Comments