- 博客(3)
- 收藏
- 关注
原创 Section 3
Mechanism:1.build own variable types ( like int ,double,,etc ) by setting up blueprints/template of class type2.use blueprints/template to bulid actual objects Having a class as blueprint and create real class objects in our c++ program With r and h, a cyl
2024-05-25 09:54:58 259
原创 Section2
Flow control:Conditional programmingdo different things based on the conditions that we have set up in our code ex:keyword:if(a bool){ }else{ }if(a bool){ }else{ }nested conditions 嵌套条件nested alternativeusing logical operatorsand &&or || not !if(a bool){ }
2024-05-25 09:50:51 341
原创 C++ section1
typedef和using都可以用来创建自定义的数据类型别名,两者的功能基本相同,只是使用语法上稍有不同// 定义一个 typedef 别名// 使用 Integer 别名声明变量// 输出变量值return 0;// 使用 using 创建别名// 使用 Integer 别名声明变量// 输出变量值return 0;
2024-05-20 21:13:50 749
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人