Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
C++ Primer
by
Stanley B.Lippman, Josee Lajoie, Barbara E.Moo
Edition:
5th Edition
ISBN13:
978-0-321-71411-4
ISBN10:
0 -321-71411-3
591
C++ programming
Home
Books
C++ Primer
Similar Books
No books found
Title
Chapter: 5 /
Q: 22
The last example in this section that jumped back to begin could be better written using a loop. Rewrite the code to eliminate the goto
Chapter: 5 /
Q: 23
Write a program that reads two integers from the standard input and prints the result of dividing the first number by the second
Chapter: 5 /
Q: 24
Revise your program to throw an exception if the second number is zero
Chapter: 5 /
Q: 25
Revise your program from the previous exercise to use a try block to catch the exception
Chapter: 6 /
Q: 1
What is the difference between a parameter and an argument
Chapter: 6 /
Q: 2
Indicate which of the following functions are in error and why. Suggest how you might correct the problems
Chapter: 6 /
Q: 3
Write and test your own version of fact
Chapter: 6 /
Q: 4
Write a function that interacts with the user, asking for a number and generating the factorial of that number. Call this function from main
Chapter: 6 /
Q: 5
Write a function to return the absolute value of its argument
Chapter: 6 /
Q: 6
Explain the differences between a parameter, a local variable, and a local static variable. Give an example of a function in which each might be useful
total questions:
591
Previous
33
34
35
36
37
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason