PDA

View Full Version : my c++ calculator!!! :)


meltigemini
09-29-2009, 08:55 AM
this is my c++

calculator
__________________________________________________ _______________


#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
double d1;
double d2;
double d3;

cout << "hit a number *****" << endl;
cin >> d1;
cout << " hit another number *****" << endl;
cin >> d2;

d3=d1+d2;

cout <<d1 <<"+" <<d2 <<"= " <<d3;

system("PAUSE");
return EXIT_SUCCESS;
}

__________________________________________________ _______________

enjoy!!! note: i use dev-c++

:D:D:D:D:D:D:D :D:D:D:D:D:D:D

Robert
09-29-2009, 09:04 AM
Since I'm just beginning to learn C++, I'm not an expert. The only thing I see that could be wrong is, isn't the part
#include <cstdlib>
#include <iostream>suppose to be

#include <cstdlib.h>
#include <iostream.h>-Robert

meltigemini
09-29-2009, 09:15 AM
dude first: im new here im showing my basic stuff.

second!

i say im using dev-c++!!!

third: next time read before talk!!

four: i know what im doing i have 3 year coding bro.

thanks.;)


ahh and another thing: this _______ is a decoration dude.

Robert
09-29-2009, 09:19 AM
dude first: im new here im showing my basic stuff.

second!

i say im using dev-c++!!!

third: next time read before talk!!

four: i know what im doing i have 3 year coding bro.

thanks.;)


ahh and another thing: this _______ is a decoration dude.
I did read. If you read my whole reply, you will see I'm new also. I made a simple remark because I thought it was wrong. You're the one who needs to read before you talk.

-Robert

meltigemini
09-29-2009, 09:28 AM
omg im just trying to show my talent if you have a problem the ignore and keep walking ok-.-

Andrew
09-29-2009, 09:14 PM
Constructive criticism... Learn it faggot. It's a part of trying to help. You don't have to be greedy.

Cariz
09-29-2009, 10:39 PM
I am not sure exactly (at all) what you are talking about. Coding is for the people who a reality(ly) challenged.

:)