fabulous43 fabulous43
  • 02-09-2017
  • Computers and Technology
contestada

Write a C++ Program to read 2 grades from the keyboard ( Math and Physics ) .

Respuesta :

tonb
tonb tonb
  • 04-09-2017
cin is discouraged, so I'd go with:

string math, physics;
getline(cin, math);
getline(cin, physics);

of course, parsing needs to happen to verify that a correct grade was typed...
Answer Link

Otras preguntas

The blood-brain barrier occurs when the physical structures of the brain prevent blood from intermingling with the extracellular fluid of brain cells. This sepa
Discuss whether the findings about equality in hunter-gathering societies are of any relevance to 21st century society
This is a method by which citizens propose an amendment or a law.
Zoe’s math teacher tells her to construct an equilateral triangle. What information does Zoe need?
10 examples of compound - complex sentences. please answer :(
Microtubules, microfilaments, and intermediate filaments make up the _____, which lies beneath the plasma membrane and provides support, movement, and shape for
The fraction 7/4 is known as a
61​% of men consider themselves professional baseball fans. You randomly select 10 men and ask each if he considers himself a professional baseball fan. Find th
factor that encourages harmful substances in food production
Which of the following describes a condition in which an individual would not hear an echo? A. An individual is standing 30 meters in front of the reflecting