DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   my #include <string> wont make "string" bold (http://www.daniweb.com/forums/thread45863.html)

newgurl May 19th, 2006 9:52 am
my #include <string> wont make "string" bold
 
Hello,
Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple:

#include <iostream>
#include <string.h>
using namespace std;
...
...
...
int id;
    string name;
    int item;
    float cost;

int is bold, float is bold, but string is not...
Can someone give me an idea why?

I also tried <string.h>.

Thanks for your assistance!

newgurl May 19th, 2006 9:58 am
Re: my #include <string> wont make "string" bold
 
Although it wont make it bold, I just realised it still uses it. So library is called after all. Sorry to waste anyone's time.

Dave Sinkula May 19th, 2006 10:12 am
Re: my #include <string> wont make "string" bold
 
Keywords: bold. Library types: normal.

And std::string is from <string>, not <string.h>.

WaltP May 19th, 2006 8:13 pm
Re: my #include <string> wont make "string" bold
 
Try
#include <string>
string.h is not meant for 'C++strings', it is for char* or 'C-strings'


All times are GMT -4. The time now is 8:51 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC