InterviewGuide icon indicating copy to clipboard operation
InterviewGuide copied to clipboard

C++语法 90 勘误

Open sterben-01 opened this issue 1 year ago • 1 comments

cout<<是一个函数,cout<<后可以跟不同的类型是因为cout<<已存在针对各种类型数据的重载,所以会自动识别数据的类型。

std::cout 不是函数,是类std::ostream的全局对象。

sterben-01 avatar Mar 21 '23 02:03 sterben-01

thx

forthespada avatar May 05 '23 02:05 forthespada