my #include <string> wont make "string" bold

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2006
Posts: 30
Reputation: newgurl is an unknown quantity at this point 
Solved Threads: 0
newgurl newgurl is offline Offline
Light Poster

my #include <string> wont make "string" bold

 
0
  #1
May 19th, 2006
Hello,
Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple:

  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. ...
  5. ...
  6. ...
  7. int id;
  8. string name;
  9. int item;
  10. 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!
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 30
Reputation: newgurl is an unknown quantity at this point 
Solved Threads: 0
newgurl newgurl is offline Offline
Light Poster

Re: my #include <string> wont make "string" bold

 
0
  #2
May 19th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,334
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 234
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: my #include <string> wont make "string" bold

 
0
  #3
May 19th, 2006
Keywords: bold. Library types: normal.

And std::string is from <string>, not <string.h>.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: my #include <string> wont make "string" bold

 
0
  #4
May 19th, 2006
Try
  1. #include <string>
string.h is not meant for 'C++strings', it is for char* or 'C-strings'
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC