Hey, could anyone who knows what they are doing tell me why the following C++ isn't working?
#include<iostream>
using namespace std;
int main(void)
{
double dnumber1 " 0.0;
double dnumber2 " 0.0;
double dnumber3 " 0.0;
cout << "please enter 3 numbers! " << endl;
cin >> dnumber1;
cin >> dnumber2;
cin >> dnumber3;
daverage " (dnumber1 + dnumber2 + dnumber3) / 3;
cout << "the average of the numbers are: " << daverage << endl;
system("PAUSE");
return 0;
}
I'm getting quite a few errors, thanks.
hm.. *presses the "Call D4rk" button*
Hmmm, why is it "int main"? Should it not be just "main"? What are you trying to use the operator "main" as?
Or Cosmic? Any will do.
Hmmm, why is it "int main"? Should it not be just "main"? What are you trying to use the operator "main" as?
Or Cosmic? Any will do.
Hmmm, why is it "int main"? Should it not be just "main"? What are you trying to use the operator "main" as?
This is straight from a youtube video tutorial I was following...
I'm still learning from C++ for dummies remember. 
I will change and see.
EDIT:
Still broken. 
I tweaked it a bit for fun. This works:
#include<iostream>
using namespace std;
main(void)
{
double dnumber1;
dnumber1 = 0.0;
double dnumber2;
dnumber2 = 0.0;
double dnumber3;
dnumber3 = 0.0;
cout << "Please enter 3 numbers! " << endl;
cin >> dnumber1;
cin >> dnumber2;
cin >> dnumber3;
double daverage;
daverage = (dnumber1 + dnumber2 + dnumber3) / 3;
cout << "The average of the numbers are: " << daverage << endl;
system("PAUSE");
return 0;
}
Cosmic, that works thanks.
Edit: Thanks D4rk. I know what my mistake was now.

*Goes back to reading*
I'll join you *grabs favorite yellow book*

*reads favorite geekier book*

Maybe watching it might be a little better? Reading it would be slightly boring...
Wait how did we get from Programming to porn? GTFO!

*"reads" porn*
There are so many good free videos.......... I mean, programming tutorials
daverage " (dnumber1 + dnumber2 + dnumber3) / 3;
I know it's already been answered, but my C++ is rusty and I wanted to see if I got this right. Is this what they corrected?
yeah, there were double-quotes where there were supposed to be equals operators.