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

why did the federalist a have more support than the Antifederalists?
what's the inequality for Noah has fewer than 8 tennis balls?
if the diameter of a circle is 25 inches, how long is the radius?
Which theory of macroeconomics dominated the Reagan administration? industrialization socialism stagflation supply-side economics
What is 2x times x squared?
Which factor made it more difficult for new immigrants to be assimilated into American society? (A) New immigrants largely favored socialism. (B) New immigrants
if C is an infinite set and B is a finite set then C\B is infinite set
simplify (x^3+5x^2+5x-2)+(x+2)
How are proteins made
solar energy hits the surface of a lake. this is likely to cause water near the surfave to undergo