文件名称:EX_8
-
所属分类:
- 标签属性:
- 上传时间:2016-05-13
-
文件大小:5.27mb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
(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 [])
(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 [])
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EX_8/
EX_8/demo1/
EX_8/demo1/Debug/
EX_8/demo1/Debug/demo1.exe
EX_8/demo1/Debug/demo1.ilk
EX_8/demo1/Debug/demo1.obj
EX_8/demo1/Debug/demo1.pch
EX_8/demo1/Debug/demo1.pdb
EX_8/demo1/Debug/vc60.idb
EX_8/demo1/Debug/vc60.pdb
EX_8/demo1/demo1.cpp
EX_8/demo1/demo1.dsp
EX_8/demo1/demo1.dsw
EX_8/demo1/demo1.ncb
EX_8/demo1/demo1.opt
EX_8/demo1/demo1.plg
EX_8/demo2/
EX_8/demo2/Debug/
EX_8/demo2/Debug/demo2.exe
EX_8/demo2/Debug/demo2.ilk
EX_8/demo2/Debug/demo2.obj
EX_8/demo2/Debug/demo2.pch
EX_8/demo2/Debug/demo2.pdb
EX_8/demo2/Debug/vc60.idb
EX_8/demo2/Debug/vc60.pdb
EX_8/demo2/demo2.cpp
EX_8/demo2/demo2.dsp
EX_8/demo2/demo2.dsw
EX_8/demo2/demo2.ncb
EX_8/demo2/demo2.opt
EX_8/demo2/demo2.plg
EX_8/demo3/
EX_8/demo3/Debug/
EX_8/demo3/Debug/demo3.exe
EX_8/demo3/Debug/demo3.ilk
EX_8/demo3/Debug/demo3.obj
EX_8/demo3/Debug/demo3.pch
EX_8/demo3/Debug/demo3.pdb
EX_8/demo3/Debug/vc60.idb
EX_8/demo3/Debug/vc60.pdb
EX_8/demo3/demo3.cpp
EX_8/demo3/demo3.dsp
EX_8/demo3/demo3.dsw
EX_8/demo3/demo3.ncb
EX_8/demo3/demo3.opt
EX_8/demo3/demo3.plg
EX_8/demo4/
EX_8/demo4/Debug/
EX_8/demo4/Debug/demo1.exe
EX_8/demo4/Debug/demo1.ilk
EX_8/demo4/Debug/demo1.pch
EX_8/demo4/Debug/demo1.pdb
EX_8/demo4/Debug/lmt_8_1.exe
EX_8/demo4/Debug/lmt_8_1.ilk
EX_8/demo4/Debug/lmt_8_1.obj
EX_8/demo4/Debug/lmt_8_1.pch
EX_8/demo4/Debug/lmt_8_1.pdb
EX_8/demo4/Debug/vc60.idb
EX_8/demo4/Debug/vc60.pdb
EX_8/demo4/demo1.dsp
EX_8/demo4/demo1.dsw
EX_8/demo4/demo1.ncb
EX_8/demo4/demo1.plg
EX_8/demo4/lmt_8_1.cpp
EX_8/demo4/lmt_8_1.dsp
EX_8/demo4/lmt_8_1.dsw
EX_8/demo4/lmt_8_1.ncb
EX_8/demo4/lmt_8_1.opt
EX_8/demo4/lmt_8_1.plg
EX_8/demo1/
EX_8/demo1/Debug/
EX_8/demo1/Debug/demo1.exe
EX_8/demo1/Debug/demo1.ilk
EX_8/demo1/Debug/demo1.obj
EX_8/demo1/Debug/demo1.pch
EX_8/demo1/Debug/demo1.pdb
EX_8/demo1/Debug/vc60.idb
EX_8/demo1/Debug/vc60.pdb
EX_8/demo1/demo1.cpp
EX_8/demo1/demo1.dsp
EX_8/demo1/demo1.dsw
EX_8/demo1/demo1.ncb
EX_8/demo1/demo1.opt
EX_8/demo1/demo1.plg
EX_8/demo2/
EX_8/demo2/Debug/
EX_8/demo2/Debug/demo2.exe
EX_8/demo2/Debug/demo2.ilk
EX_8/demo2/Debug/demo2.obj
EX_8/demo2/Debug/demo2.pch
EX_8/demo2/Debug/demo2.pdb
EX_8/demo2/Debug/vc60.idb
EX_8/demo2/Debug/vc60.pdb
EX_8/demo2/demo2.cpp
EX_8/demo2/demo2.dsp
EX_8/demo2/demo2.dsw
EX_8/demo2/demo2.ncb
EX_8/demo2/demo2.opt
EX_8/demo2/demo2.plg
EX_8/demo3/
EX_8/demo3/Debug/
EX_8/demo3/Debug/demo3.exe
EX_8/demo3/Debug/demo3.ilk
EX_8/demo3/Debug/demo3.obj
EX_8/demo3/Debug/demo3.pch
EX_8/demo3/Debug/demo3.pdb
EX_8/demo3/Debug/vc60.idb
EX_8/demo3/Debug/vc60.pdb
EX_8/demo3/demo3.cpp
EX_8/demo3/demo3.dsp
EX_8/demo3/demo3.dsw
EX_8/demo3/demo3.ncb
EX_8/demo3/demo3.opt
EX_8/demo3/demo3.plg
EX_8/demo4/
EX_8/demo4/Debug/
EX_8/demo4/Debug/demo1.exe
EX_8/demo4/Debug/demo1.ilk
EX_8/demo4/Debug/demo1.pch
EX_8/demo4/Debug/demo1.pdb
EX_8/demo4/Debug/lmt_8_1.exe
EX_8/demo4/Debug/lmt_8_1.ilk
EX_8/demo4/Debug/lmt_8_1.obj
EX_8/demo4/Debug/lmt_8_1.pch
EX_8/demo4/Debug/lmt_8_1.pdb
EX_8/demo4/Debug/vc60.idb
EX_8/demo4/Debug/vc60.pdb
EX_8/demo4/demo1.dsp
EX_8/demo4/demo1.dsw
EX_8/demo4/demo1.ncb
EX_8/demo4/demo1.plg
EX_8/demo4/lmt_8_1.cpp
EX_8/demo4/lmt_8_1.dsp
EX_8/demo4/lmt_8_1.dsw
EX_8/demo4/lmt_8_1.ncb
EX_8/demo4/lmt_8_1.opt
EX_8/demo4/lmt_8_1.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.