C++
文章平均质量分 95
Xiao Gong
Exploring what i want is exciting.
展开
-
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
C++ section1
typedef和using都可以用来创建自定义的数据类型别名,两者的功能基本相同,只是使用语法上稍有不同// 定义一个 typedef 别名// 使用 Integer 别名声明变量// 输出变量值return 0;// 使用 using 创建别名// 使用 Integer 别名声明变量// 输出变量值return 0;原创 2024-05-20 21:13:50 · 749 阅读 · 0 评论