I am trying to make an array of strings in C++. The problem is this that i need the strings to be multiline.
Is this possible in C++? how can we do it?
jmines
1
Newbie Poster
Recommended Answers
Jump to PostThis is no such concept as multi-line strings. If you want CR/LF in the string then just append "\n" whereever you want a new line to begin when output
std::string hello = "Hello\nWorld\n"; cout << hello;
All 4 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jmines
1
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
jmines
1
Newbie 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.