ok never used C++ before and i am using it far a college corse and i decided to use Xcode 4 based on the suggestions made on this site, I watched a tutorial on how to generally use c++ and i am familiar with python, i am wondering why no #include commands work. i have gone through aprox. 30 pages on google looking for an answer
here is my code just in case
and fyi i have tried math, math.h and iostream (iostream is th most used one i can find but it is not recognized, it says "iostream" file not found)
here is my code just in case
Code:
#include <cmath>
using manespace std;
int main(void)
(
double dnumber1 = 0.0;
double dnumber2 = 0.0;
double dnumber3 = 0.0;
double average = 0.0;
cout << "please enter 3 numbers: "; <<endl;
cin >> dnumber1;
cin >> dnumber2;
cin >> dnumber3;
daverage = (dmunber1 + dmunber2 + dnumber3) / 3;
cout << "the average of the mumbers are: " << daverage << endl << endl
system("pause")
return 0;
)
Last edited by a moderator: