| | |
my #include <string> wont make "string" bold
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 application array based binary bitmap c# c++ c/c++ char class classes code coding compile compression console conversion count cpm delete deploy deque desktop developer dialog directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer introductory java lib linkedlist linkednodes linker loop looping loops map math matrix memory multiple news node numbertoword output parameter pointer problem program programming project python random read recursion reference rpg security sorting string strings temperature template test text text-file tree url variable vector video whyisthiscodecausingsegmentationfault win32 windows winsock wordfrequency wxwidgets






