学习C++第四天

今天是第四天,学习内容如下:
1.逗号运算符,关系运算符,逻辑运算符
2.条件表达式
3.位运算
4.混合运算时数据类型的转换(隐式)(显式)
5.使用注释
6.写代码遇到错误要记下错误原因及自己的解决方法
7.今日代码:
int main()
{
/* std::cout << sizeof “C++”<<std::endl;
std::cout << “the long is” << sizeof(long) << “byte\n”<<std::endl;
unsigned int x;
unsigned int y = 100;
unsigned int z = 50;
x = y - z;
cout << “difference is” << x;
x = z - y;
cout << “now the difference is” << x; */

int a, b, x;
cout << "input the value of a:/n";
cin >> a;
cout << "input the value of b:/";
cin >> b;
x = (a - b) > 0 ? (a - b) : (b - a);
cout << "the difference of a and b is:\t\t" << x;
return(0);

}

今天又没学习多久,但我发现那个软件可以倍速播放,看来以后可以倍速来看快点,周末一定要多学点。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值