Right i started learning C++ about 3 days ago with the boot C++ All - In - One Desk Refernce for Dummies.
On the CD with it, it came with a compiler which was Bloodshed Dev-C++. I dont know if it is me or the compiler but i have error with my code that i used from the book:
#include <iostream>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int mynumber;
mynumber = 10;
cout << mynumber << end1;
system("PAUSE");
return 0;
}
It is very basic but Dev-C++ is telling me that "Line 7 `end1' undeclared (first use this function)"
So yeh anyhelp, do i have end1 typed in wrong or is it the compiler????
Question
+dave164 Subscriber¹
Right i started learning C++ about 3 days ago with the boot C++ All - In - One Desk Refernce for Dummies.
On the CD with it, it came with a compiler which was Bloodshed Dev-C++. I dont know if it is me or the compiler but i have error with my code that i used from the book:
#include <iostream>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int mynumber;
mynumber = 10;
cout << mynumber << end1;
system("PAUSE");
return 0;
}
It is very basic but Dev-C++ is telling me that "Line 7 `end1' undeclared (first use this function)"
So yeh anyhelp, do i have end1 typed in wrong or is it the compiler????
Thanks
dave164
Link to comment
Share on other sites
10 answers to this question
Recommended Posts