C++ Programming:
The lecture demonstrated how to read a line with multiple entries. Which of the following is the correct way to read each entry in the following line from a text file into variable(s) of the appropriate data type? John 23 4.382 0 String line; getline (cin, line); O String name; int age; float score; cin >> name; cin >> age; cin >> score; 0 String name; int age; float score; cin >> score; cin >> age; cin >> name; 0 String name; int age; float score; getline (cin, name, age, score); o String name; int age; float score; file name; file age; file score;
What is the correct term for each of the program parts marked with a comment? #include iostream void hello(); // Part 1 using namespace std; int main() { hello(); // Part 2 return ; } void hello() // Part 3 cout << "Hello world! I Love Programming."; } Part 1 [Choose] Part 2 [Choose ] Part 3 [Choose ] [Choose Function Prototype Function Definition Function Call Function Variable
C++ Programming:
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am