
黑马程序员C++ 笔记
记载在学习课程时遇到的感悟和思考
Brendan_001
人生道路千万条,选择与你一起也是其中一条
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
结构体做函数参数
#include<iostream>using namespace std;#include <string>struct student{string name;int age;int score;};void printStudent1(struct student stul){cout <<"姓名:"<<stul,name<<"年龄:"<<stul.age<<...原创 2021-10-30 15:52:23 · 114 阅读 · 0 评论 -
结构体-结构体基本概念
#include <iostream>using namespace std;#include <string>struct student {//结构体string name;int age;int score;};int main(){struct student stul;stul.name="zhangsan";stul.age=20;stul.score=90;cout<<"姓名"<<stul.原创 2021-10-29 22:15:10 · 199 阅读 · 0 评论