登录
首页 » Visual C++ » EX_8

EX_8

于 2016-05-13 发布 文件大小:5397KB
0 201
下载积分: 1 下载次数: 3

代码说明:

  (1) 新建一个工程demo2,设计一个类Student,其成员变量包括学号(no)、姓名(name)、性别(sex)、专业(major)、联系方式(phone)和地址(addr)。 (2) 为类Student定义成员函数writeTo,实现从给定文本文件中读取学生数据,接口如下: void writeTo (char filename[ ]) (3) 为类Student定义成员函数readFrom,实现将学生数据保存到给定文本文件,接口如下: void readFrom (char filename[ ]) ((1) Create a new project demo2, design a class Student, whose member variables, including school (no), name (name), gender (sex), specialty (major), contact details (phone) and address (addr). (2) define the Student class member function writeTo, students achieve reading data a given text file, the interface is as follows: void writeTo (char filename []) (3) define the Student class member function readFrom, students will achieve data save to text file given, the interface is as follows: void readFrom (char filename []) )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Calculation-Jacobe
    Jacobi calculations . it is used to calculate liner problem
    2014-10-21 03:20:26下载
    积分:1
  • SLAM_plus_plus_v1.13
    Slam written in c++
    2015-03-04 19:53:44下载
    积分:1
  • MATLABGUI
    信号处理与分析,是基于gui的信号处理与分析,相关函数的应用。(Random signal analysis and Process)
    2013-12-25 15:27:36下载
    积分:1
  • Hough
    说明:  hough变换原理和公式 检测边缘 和MATLAB程序代码(hough transform theory and MATLAB code)
    2011-04-01 12:20:12下载
    积分:1
  • QFFT
    全相位离散频谱校正的matlab程序,能得到多频率信号的频率,幅值,相位。(All Phase discrete spectrum correction matlab program, to get multi-frequency signal frequency, amplitude and phase.)
    2015-01-18 23:59:22下载
    积分:1
  • get_system_now
    此模块可以获取系统的最高权限SYSTEM权限。(This module can obtain the highest authority system SYSTEM privileges.)
    2015-03-27 22:29:42下载
    积分:1
  • CoordCovert
    一个坐标系转换的类,参考系:WGS-84椭球体参数;功能:笛卡尔坐标系、大地坐标系、站心地平坐标系(线坐标形式)、站心地平坐标系(极坐标形式)之间的互相转换。(A coordinate transformation class reference system: WGS-84 ellipsoid parameters Function: Cartesian coordinates, geodetic coordinate system, Station Local coordinate system (line coordinates), Station Local coordinate system (polar form) of conversion between each other.)
    2014-11-06 08:45:11下载
    积分:1
  • malat
    基于MFC编写的界面,用VC与matlab混编实现马拉特小波分解,有文档注释,适合初学者( MFC-based interface prepared by VC and matlab mixed to achieve Marat wavelet decomposition, documentation notes, suitable for beginners)
    2013-12-05 09:40:36下载
    积分:1
  • 11912888matlab
    Very low cost, low component count charger/adapter – replaces linear transformer based solutions • Extremely simple circuit configuration designed for high volume, low cost manufacturing
    2009-03-01 10:59:59下载
    积分:1
  • FPE
    说明:  按FPE定阶的 源程序:fpe.cpp M序列:M序列.txt 白噪声:Gauss.txt 程序中先用依模型阶次递推算法估计模型的参数,再用fpe方法判断模型的阶次。 程序运行结果如下: n: 1 判断阶次FPE的值: 0.0096406 -0.481665 1.07868 n: 2 判断阶次FPE的值: 0.00875755 -0.446739 0.00498181 1.07791 0.0527289 n: 3 判断阶次FPE的值: 0.0087098 -0.459433 0.120972 -0.0569228 1.07814 0.0390757 0.116982 n: 4 判断阶次FPE的值: 0.000396884 -0.509677 0.4501 -0.200906 0.0656188 1.07991 -0.0156362 0.442989 0.0497236 n: 5 判断阶次FPE的值: 3.2095e-007 -1.18415 0.813123 -0.517862 0.34881 -0.116864 1.07999 -0.744141 0.474462 -0.253112 0.122771 n: 6 判断阶次FPE的值: 3.23349e-007 -1.14659 0.76933 -0.487651 0.329676 -0.10377 -0.00440907 1.07999 -0.703574 0.447253 -0.235282 0.113587 0.00479688 从以上结果可以看出,当n=5时,fpe值最小,所以这时的模型阶次和参数估计值为最优结果: 3.2095e-007 -1.18415 0.813123 -0.517862 0.34881 -0.116864 1.07999 -0.744141 0.474462 -0.253112 0.122771(err)
    2008-09-12 01:14:14下载
    积分:1
  • 696518资源总数
  • 106148会员总数
  • 10今日下载