![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
3.数据结构相关/VC6.0练习代码
Natsume Z. Simentsu
Finance && Science && Technology
展开
-
矩阵转置函数调用范例_1# 2018/07/01
#include <STDIO.H> void switchArray(int array[][255],int row_num,int column_num); int main() { int m,n; int i,j; int a[255][255]; printf("Please input the m and the n of the matrix : "); scanf(...原创 2018-07-11 20:42:53 · 769 阅读 · 0 评论 -
设计类用于存储学生各科成绩并求其平均_1# 2018/8/10
此程序参考自《C++面向对象程序设计教程(第三版)》,陈维兴,林小茶编著,Page98。 此程序代码采用C++语言编写,通过设计一个score类来储存各科成绩(例子中为Math,Physics,Chinese),再通过设计student类来储存学生的姓名,学号,并通过类的组合方式求其个人成绩平均,班级每个人单科成绩平均分的总平均,同时还显示学生人数。 要点: 1.采用类的组合。 ...原创 2018-08-10 13:11:54 · 487 阅读 · 0 评论