⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 student_test.cpp

📁 一次作业练习
💻 CPP
字号:
/*******************************************************************************
*          Student Name: Zou Wenzhu           Student Number:1284932           *
********************************************************************************/

#include "Student.h"
#include <string>
#include <fstream>


int main(int argc, char *argv[])
{
  ifstream fin("C:\\Dev-C++\\MyFiles\\HW6\\6.a_b\\studentlist.txt");//file path name

  if(fin.fail())
  {
   cout<<"File not found."<<endl;
  }

  Student s;  //create an object
  s.read(fin);  //read the file from the text file accord to the path name
  s.write(cout);//output the file content to the console


  system("PAUSE");
  return 0;
}


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -