int x;// variable declared as an integer variable x = 100;// 'x' now contains the value 100 x +=50;// 'x' now contains the value 150 我是c++初学者.
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 16:54:27
intx;//variabledeclaredasanintegervariablex=100;//''x''nowcontainsthevalue100x+=50;//''x''nowcontainsthe
int x;// variable declared as an integer variable x = 100;// 'x' now contains the value 100 x +=50;// 'x' now contains the value 150 我是c++初学者.
int x;// variable declared as an integer variable
x = 100;// 'x' now contains the value 100
x +=50;// 'x' now contains the value 150
我是c++初学者.
int x;// variable declared as an integer variable x = 100;// 'x' now contains the value 100 x +=50;// 'x' now contains the value 150 我是c++初学者.
int x;定义一个整数变量
x=100;//将100值赋给予x
x+=50;即是x=x+50 =>x=100+50 => x=150
注:在C语言中“=”并不是和传统数学的等号,而是赋值符,即将右边的表达式计算结果放在左边的变理里.