What to do to make a string in C++?
-
I made this but it turned out to be wrong. #include <string.h> #include <cctype.h> #include <conio.h> #include <iostream.h> main() { int using name space std; clrscr(); cout<<"Your First String is:", cin>>std::string s1; cout<<"Your Second String is:", cin>>std::string s2; std::string s3 = s1+s2; std::cout<<"The String \"" <<s3<< "\" has " <<s3.size()<< " Characters \n"; getch(); return 0; } I should make a program that would say: Your First String is: Yahoo Your Second String is: Answers I don't know how to do concenated string but it should say: Your concenated string is: YahooAnswers Your string has 12 characters. I don't know how to reverse letters/characters in a concenated string but it should say: The Reverse of Your Second String is: srewsnA Links please,too. Thanks.
-
Answer:
You would think that someone this smart as he implies would at least get the category right...
Athena at Yahoo! Answers Visit the source
Other answers
Im sure Caroline Wozniacki knows that. WRONG CATEGORY!
Gzgzone
Related Q & A:
- How to split a string in C++?Best solution by Stack Overflow
- How to marshall a string in C?Best solution by Stack Overflow
- Should I make a C&C cage for my guinea pigs?Best solution by Yahoo! Answers
- How do I make a Vitamin C standard solution?Best solution by answers.yahoo.com
- What's the linear mass density of a string?Best solution by Answerbag.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.