As mentioned in this chapter, C++ predefined identifiers such as cout and cin can be redefined by the programmer.
As mentioned in this chapter, C++ predefined identifiers such as cout and cin can be redefined by the programmer.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section: Chapter Questions
Problem 7PP
Related questions
Question
As mentioned in this chapter, C++ predefined identifiers such as cout and cin can be redefined by the programmer.
Expert Solution
Step 1
Question:
As mentioned in this chapter, C++ predefined identifiers such as cout and cin can be redefined by the programmer.
Answer:
- yes, In C++ predefined identifiers such as cout and cin can be redefined by the programmer.
- But, It is not a good idea to redefine cin and cout in programs.
- Redefining cin and cout
- reduces the readability of the program.
- difficult to understand the program for a new user.
- Sometimes, breaks its original functionality.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr