Discover
Questions library
Collections library
Find online teacher
login
Discover
questions library
Find online teacher
login
Popular searches:
if-else
class-diagram
Polymorphism
flowchart
Home
Questions
Questions
Study lists
Kasim Kamal Questions
290 Questions
Write a program to read the standard input a line at a time. Modify your program to read a word at a time
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
134
Rewrite the exercises from § 1.4.1 (p. 13) and § 2.6.2 (p. 76) with appropriate using declarations
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
436
We can use these facilities to guard against multiple inclusion as follows
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
138
Our other task is to check that the transactions are for the same ISBN. If so, we’ll print their sum, otherwise, we’ll print an error message
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
410
Our program will next repeat the same code to read data into data2
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
152
The string type holds a sequence of characters. Its operations include the >>, <<, and == operators to read, write, and compare strings, respectively. With this knowledge we can write the code to read the first transaction
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
2
144
Because this program will be longer than any we’ve written so far, we’ll explain it in separate parts. Overall, our program will have the following structure
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
380
The close curly that ends the class body must be followed by a semicolon. The semicolon is needed because we can define variables after the class body
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
165
We’ll name our version Sales_data to distinguish it from Sales_item. We’ll define our class as follows
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
372
Some expressions will cause decltype to yield a reference type. Generally speaking, decltype returns a reference type for expressions that yield objects that can stand on the left-hand side of the assignment
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
133
The way decltype handles top-level const and references differs subtly from the way auto does. When the expression to which we apply decltype is a variable, decltype returns the type of that variable, including top-level const and references
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
194
When we define several variables in the same statement, it is important to remember that a reference or pointer is part of a particular declarator and not part of the base type for the declaration. As usual, the initializers must provide consistent auto-deduced types
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
192
We can also specify that we want a reference to the auto-deduced type. Normal initialization rules still apply
C++ programming
2022-07-03
Answers
30
Question
40
Followers
30
0
1
156
Total:
290
Previous
9
10
11
12
13
Next
Go