Answer to Question #257972 in C++ for Kelvin Tito

Question #257972

Write a C++ program to illustrates how to read strings and numeric data


1
Expert's answer
2021-10-28T06:19:37-0400
#include <iostream>

int main() {
 std::string str;
 int num;
 // read a string 
 std::cin >> str;
 // read a numberic data
 std::cin >> num;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS