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: 3 /
Q: 3.3
Explain how whitespace characters are handled in the string input operator and in the getline function
Chapter: 3 /
Q: 3.4
Write a program to read two strings and report whether the strings are equal. If not, report which of the two is larger. Now, change the program to report whether the strings have the same length, and if not, report which is longer
Chapter: 3 /
Q: 3.5
Write a program to read strings from the standard input, concatenating what is read into one large string. Print the concatenated string. Next, change the program to separate adjacent input strings by a space
Chapter: 3 /
Q: 3.6
Use a range for to change all the characters in a string to X
Chapter: 3 /
Q: 3.7
What would happen if you define the loop control variable in the previous exercise as type char? Predict the results and then change your program to use a char to see if you were right
Chapter: 3 /
Q: 3.8
Rewrite the program in the first exercise, first using a while and again using a traditional for loop. Which of the three approaches do you prefer and why?
Chapter: 3 /
Q: 3.9
What does the following program do? Is it valid? If not, why not?
Chapter: 3 /
Q: 3.10
Write a program that reads a string of characters including punctuation and writes what was read but with the punctuation removed
Chapter: 3 /
Q: 3.11
Is the following range for legal? If so, what is the type of c
Chapter: 3 /
Q: 3.12
Which, if any, of the following vector definitions are in error? For those that are legal, explain what the definition does. For those that are not legal, explain why they are illegal
total questions:
591
Previous
14
15
16
17
18
Next
Questions
591
Views
Best Answers
299
Points
5
×
Close
add reason
reason