Tuesday, July 28, 2009

C++ help on homework?

40. __________ reads an entire line of text, until the [Enter] key is pressed. - 1 point(s)


cin





cin.getline()





cin.get()





cin.ignore()





cin.input()








41. Which of the following assigns a value to the hourlyWage member of the third employee structure array element? - 1 point(s)


employee[2]-%26gt;hourlyWage = 50.00;





employee2.hourlyWage = 7.50;





hourlyWage[2].employee = 29.75





employee[2].hourlyWage = 100.00;





None of these








42. A _____ is a variable, usually a boolean or an integer, that signals when a condition exists. - 1 point(s)


relational operator





arithmetic operator





flag





float





None of these

C++ help on homework?
1. I think it's getline.


2. The fourth (the first one assigns to a pointer, so I guess this is not the correct).


3. Flag.
Reply:what kinda math are you takin?
Reply:40. cin.input()


41. None of these


42.Arithmetic operator
Reply:what?
Reply:??????
Reply:I'm not used to this style of c++





40) cin.getline()


41)


42) flag or operator


No comments:

Post a Comment