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

I need help now! What do the following lines from the namesake illustrate? "Ashima thinks it's strange that her child will be born in a place most people enter
Compare a homogeneous mixture with a heterogeneous mixture.
which accounts are affected when the company buys supplies on account? A.assets and capital B.liabilities and capital C.assets and liabilities
Given the parent functions f(x) = 5x − 1 and g(x) = 3x − 9, what is g(x) − f(x)? g(x) − f(x) = 3x − 8 − 5x g(x) − f(x) = 3x − 10 − 5x g(x) − f(x) = −2x − 8 − 3x
#1. What was one effect of new British taxes on colonists?
Are 'Resistant' and 'Yielding' synonyms, antonyms, or neither?
Lavoisier made an important contribution to chemistry by _____. a) being the first to use the term "atom" b) describing the orbits of electrons c) discovering t
Find an equation of the tangent line to the curve at the given point. y=secx (pi/3,2)
A normal human karyotype has _____.
the sum of three consecutive even numbers is 48. what are the smallest of these numbers?