| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Ok well i recently got C++ all-in-one desk reference for dummies for the compiler and just for a reference. I installed DEV's c++ compiler and tried my own code in it just to make sure it worked and everything. But when i tried it kept telling me:
"'cout' undeclared (first use this function)". I dont know why it keeps telling me that. But i went ahead and tried an example from the book just incase i was doing something wrong and it did the same. Would someone mind telling me what im doing wrong or have done wrong? i would really appreciate it, thanks ![]() |
|
#2
|
||||
|
||||
|
#include <iostream>
using namespace std; <-- did you miss this? (or did you write std::cout?) I have no experience with Dev-c++ so if I am preaching to the coir now, sorry ![]() |
|
#3
|
|||
|
|||
|
Quote:
oh thanks lol sorry im use to another compiler and i had using namespace std but i had namespace spelt wrong, thanks for the help |
|
#4
|
|||
|
|||
|
If anyone sees this i need more help. Sorry im really new at this Dev c++ thing its a lot different than the one i started on.
Im trying to create a string but it keeps giving me an error message saying: parse error before `;' token and i put in the: #include <string> Is there anything else i need to include? (I have a book that uses the Dev C++ 4.9.3.0 version and it has some errors becase i use the Dev c++ 4.9.70) Thanks again |
|
#5
|
||||
|
||||
|
My reply is in the other post: postthe source, it's probably not Dev c++ related i expect.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > I need help with the Dev C++ compiler |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|