944,177 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 4291
  • C++ RSS
May 19th, 2006
0

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

Expand Post »
Hello,
Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple:

C++ Syntax (Toggle Plain Text)
  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!
Reputation Points: 10
Solved Threads: 0
Light Poster
newgurl is offline Offline
30 posts
since Apr 2006
May 19th, 2006
0

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
newgurl is offline Offline
30 posts
since Apr 2006
May 19th, 2006
0

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

Keywords: bold. Library types: normal.

And std::string is from <string>, not <string.h>.
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004
May 19th, 2006
0

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

Try
C++ Syntax (Toggle Plain Text)
  1. #include <string>
string.h is not meant for 'C++strings', it is for char* or 'C-strings'
Moderator
Reputation Points: 3281
Solved Threads: 896
Posting Sage
WaltP is online now Online
7,753 posts
since May 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: deleting a Binary search tree
Next Thread in C++ Forum Timeline: Full screen console applications





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC