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

240 plates serve , 40 were option 3. What percentage was option 3?
If an infinite line of current located on the z-axis has a cylindrically symmetric H field of H0a (a is the unit vector in the direction) at r = a, find: a. H a
Write at least ONE paragraph to describe the Wave experiment.
The expected number of empty bins as r and n go to infinity is a) 0 b) 1 c) [infinity] d) 1/2
what would the awnser be for f(15)=?
what is the difference between name calling and glittering generalities
6 The Clause Exercise 24. Clauses. (1) In the first blank, write n. if the italicized clause is used as a noun, adj. if used as an adjective, or adv. if used as
Select all of the following claims made by manufacturers of energy drinks a) Boosts energy levels instantly b) Enhances cognitive function c) Causes permanent w
The following sentence may contain a grammar or usage error. Read the sentence and identify its error, if there is one, by choosing the appropriate answer. If t
a sentence explaining the significants of the word stock