nice to see that you started in the right way.. (with the basics actually) keep with it ^^
Thanks to Generist for helping me with my errors and the fact that I forgot to include cinCode://This is practice using variables. attempt #2 to make a basic add,sub.,multi.,divide calculator :) #include "stdafx.h" #include <iostream> #include <string> using namespace std; int main () { double a; double b; double result; cout << "Please enter #1" << endl; cin >> a; //cIN tells the program to store any variable/integer for future use and set it as "a" ; cout << "Please enter #2" << endl; cin >> b; //cIN tells the program to store any variable/integer for future use and set it as "b" ; cout << "#1 plus #2 is: "; result=a+b; //tells the program to add a to b cout << result << endl; cout << " " << endl; cout << "#1 minus #2 is: "; result=a-b; //tells the program to subtract b from a cout << result << endl; cout << " " << endl; cout << "#1 times #2 is: "; result=a*b; //tells the program to multiply a by b cout << result << endl; cout << " " << endl; cout << "#1 divided by #2 is: "; result=a/b; //tells the program to divide a by b cout << result << endl; cout << " " << endl; cout << "This is kAblE's first calculator in cpp" << endl; cout << "Thanks for using it!" << endl; system ("pause"); return 0; }
my tumblrOriginally Posted by TOXIN
How To: Not Get Banned Botting
"Had a dream I was king. I woke up, still king."
.................................................-Eminem
nice to see that you started in the right way.. (with the basics actually) keep with it ^^
Light travels faster than sound. That's why most people seem bright until you hear them speak.
KABLE (02-21-2010)
my tumblrOriginally Posted by TOXIN
How To: Not Get Banned Botting
"Had a dream I was king. I woke up, still king."
.................................................-Eminem
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
Yay now try more advanced operations like value storing and trigonometry and logarithmic functions
JK lol don't brainphuck urself
Originally Posted by falzarex aka myself
This is an epic fail resume
Hello VBfags.
A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.
A few reasons why he should be in this section instead of the C++ section:
1) He has the IQ of a VBfag.
2) He has no sense of grammer/spelling at all.
3) He thinks he is pro(like most of the people in here)
4) He thinks copy pasting is fun(exactly what you guys do)
5) He loves it up the ass(he will keep you VBfags nice and warm)
It's a good start, next you can go onto switches, or goto's.
Only thing I didn't like was your code format, the randomly placed results were odd.
And the semi-colons, and the
could just be end lines or escape sequences.Code:cout << " " << endl;
my tumblrOriginally Posted by TOXIN
How To: Not Get Banned Botting
"Had a dream I was king. I woke up, still king."
.................................................-Eminem
my tumblrOriginally Posted by TOXIN
How To: Not Get Banned Botting
"Had a dream I was king. I woke up, still king."
.................................................-Eminem
nice job better then Wat i could do