Hello again,
Im having trouble compiling this code. I took this code from C++ for dummies, but it doesn't seem to work, why?
Code:
#include <stdio.h>
#include<stdlib.h>
#include<io.h>
using namespace std;
int main (int nNumberofArgs, char* pszArgs[])
{
int start;
int n;
long L;
long long LL;
float f;
double d;
long double Ld;
int end;
cout.setf(ios: :hex);
cout.unsetf(ios: :dec);
cout << "--- = " << &start << endl;
cout << "&n = " << &n << endl;
cout << "&L = " << &L << endl;
cout << "&LL = " << &LL << endl;
cout << "&f = " << &f << endl;
cout << "&d = " << &d << endl;
cout << "&Ld = " << &Ld << endl;
cout << "--- = " << &end << endl;
system("PAUSE");
return 0;
}
please if anyone can help. Im using code blocks 10. I fixed a few bugs in the include statements, they said cstdio instead of stdio, things like that. I created this as an empty file no project, could that be the reason. I dunno the code loooks fine to me. Let me know!
Thank-you
GYes777