how can i use a string? what should i include to run string like "technogeek"
is it #include <string.h> or what and what is the syntax for string
technogeek_42
-20
Posting Whiz in Training
Recommended Answers
Jump to Poststring.h is for C programs, not C++. The std::string class is declared in <string> header file
#include <string> using namespace std;
>>what is the syntax for string
Here is a complete …
Jump to PostWe use:
#include <string>
Just remember that the term "string" generally means an ordered sequence of characters.
In an assignment, you could use something like:sting actor = "Dani"; cout<<actor<<endl;
The above would print out Dani, when executed. Hope this helps.
Jump to PostExitWindowsEx() win32 api function. The second parameter shown below can be any one of several reason codes -- see the link for other reason codes.
string str = "Quit"; ... …
All 11 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
zandiago
115
Nearly a Posting Maven
Featured Poster
technogeek_42
-20
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
technogeek_42
-20
Posting Whiz in Training
JRM
107
Practically a Master Poster
technogeek_42
-20
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Jx_Man
987
Nearly a Senior Poster
Featured Poster
technogeek_42
-20
Posting Whiz in Training
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.