complex-conversions.cpp.svn-base

来自「QT方面的开发」· SVN-BASE 代码 · 共 13 行

SVN-BASE
13
字号
#include "complex.h"int main() {    Complex c1 (4.5, 1.2);    Complex c2 (3.6, 1.5);        Complex c3 = c1 + c2;    Complex c4 = c3 + 1.4; /* Right operand is promoted. */    Complex c5 = 8.0 - c4; /* Left operand is promoted. */    Complex c6 = 1.2 + c4; /* Error: left operand        is not promoted for member operators. */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?