Command Line IO Flashcards

1
Q

What is the format of a string output?

A

std::cout &laquo_space;“string” &laquo_space;std:endl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you declare a string using iostream?

A

std::string string_variable;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the format of a string input?

A

std: :string string_variable;
std: :cin&raquo_space; string_variable;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly