| | |
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:
Solved Threads: 0
Hello,
Can you please assist, why my Dev C++ program, wont see that I am trying to introduce the string library? Eaxmple:
int is bold, float is bold, but string is not...
Can someone give me an idea why?
I also tried
Thanks for your assistance!
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)
#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!
Keywords: bold. Library types: normal.
And
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
Try
string.h is not meant for 'C++strings', it is for char* or 'C-strings'
C++ Syntax (Toggle Plain Text)
#include <string>
![]() |
Similar Threads
- Help using "include" inside of "echo" (PHP)
- Something about String.split("-"); problem (Java)
- vc++ mfc-i can't make getline work with a string for file input (C++)
- why i have to press "enter" twice before getline can read the string... (C++)
Other Threads in the C++ Forum
- Previous Thread: deleting a Binary search tree
- Next Thread: Full screen console applications
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






