结构体做为函数参数(值传递,引用传递,指针传递)

1、值传递 #include <iostream> #include <string> using namespace std;html struct Student {     int id;     string name;     float score[2]; }; void OutCome(Student s) {     cout<<s.id<<','<<s.name<<','<<s.
相关文章
相关标签/搜索