Declare variables text type of string and chr type of char.
#include <iostream> #include <string>> using namespace std; int main() { string str1, str2="Hello"; char ch, y_n='Y'; cout << str2 << endl; cout<< y_n << endl; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment