小编Cod*_*n42的帖子

当使用cout和cin时,"<<"和">>"运算符在做什么,为什么我们使用它们?

例如:

int age;
cin >> age;

cout << "You are " << age << " years old!" << endl;
Run Code Online (Sandbox Code Playgroud)

为什么我们在这里使用"<<"和">>"运算符?他们在做什么?我有点理解位移,但我不知道这是如何工作的.

c++ iostream bit-manipulation operators

1
推荐指数
1
解决办法
1284
查看次数

标签 统计

bit-manipulation ×1

c++ ×1

iostream ×1

operators ×1