CodePudding
  • Home
  • front end
  • Back-end
  • Net
  • Software design
  • Enterprise
  • Blockchain
  • Mobile
  • Software engineering
  • database
  • OS
  • other
Home > Back-end >  C plus plus
C plus plus

Time:10-06

Why don't the first error, the second error

CodePudding user response:

Cout needs a parameter, and returns the stream itself, so the cout & lt; & lt; , can together (the red part of the return flow, blue part of the flow and return flow can be directly used, so the green part also can use)
But
CoutThe second piece of code is equivalent to (cout CodePudding user response:

reference 1st floor qybao response:
cout needs a parameter, and returns the stream itself, so the cout & lt; & lt; , can together (the red part of the return flow, blue part of the flow and return flow can be directly used, so the green part also can use)
But
CoutThe second piece of code is equivalent to (cout

The first result is 10 (excuse me? - man -?)
Because c is not flow

CodePudding user response:

refer to the second floor m0_51247563 response:
Quote: refer to 1st floor qybao response:
cout needs a parameter, and returns the stream itself, so the cout & lt; & lt; , can together (the red part of the return flow, blue part of the flow and return flow can be directly used, so the green part also can use)
But
CoutThe second piece of code is equivalent to (cout

The first result is 10 (excuse me? - man -?)
Because c is not flow
yes, cout<10 a output, c

Page link:https//www.codepudding.com/Backend/54246.html

Prev:Qt Creator build suite is not set in the qt version
Next:The farmer across the river problem
  •  Tags:  
  • C + + language
  • Related
  • CPlusPlusBuilder
  •  Links:  
  • CodePudding

About Us:  Contact Us      Terms of Service       Privacy Policy

Copyright © 2010-2023,Powered By CodePudding