Command Line IO Flashcards

(3 cards)

1
Q

What is the format of a string output?

A

std::cout «_space;“string” «_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»_space; string_variable;

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