![]() |
|
#1
|
|||
|
|||
#include "<string>"; - however doesnt workHi,
Ive included string for my program - but i get the following error when i try "string name;" CPP / C++ / C Code:
thats the beginning - and the error is on the last line showed. 12 C:\CPP\Flight2.h 'string' is used as a type, but is not defined as a type. Im assuming that this means its not letting me user string as a data type - however ive got another program that is exactly the same and it allows me to do it. the only difference is that thsi is a .h file building aclass whereas the other prgram is simply a program wihtougth using any custom headers taht ive created. How can I get this header file to use string as a data type? Thanks |
|
#2
|
|||
|
|||
Re: #include "<string>"; - however doesnt workQuote:
CPP / C++ / C Code:
(or using namespace std;) Regards, Dave |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cannot draw things in the draw area | shitao1201 | FLTK Forum | 2 | 13-Nov-2007 05:14 |
| #ifndef not working? | Honourable Mist | C Programming Language | 8 | 20-Feb-2007 22:38 |
| Random access files | Krazy_yA | C Programming Language | 6 | 07-May-2006 01:44 |
| fltk-2.0 cvs | Plumb | FLTK Forum | 20 | 13-Nov-2004 07:10 |
| help with classes | bucho | MS Visual C++ / MFC Forum | 3 | 20-Oct-2004 06:16 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The