Constructor Method - Southern Maine Community College:构造函数的方法-缅因州南部社区大学.pptVIP

  • 3
  • 0
  • 约7.47千字
  • 约 22页
  • 2018-06-24 发布于四川
  • 举报

Constructor Method - Southern Maine Community College:构造函数的方法-缅因州南部社区大学.ppt

Constructor Method - Southern Maine Community College:构造函数的方法-缅因州南部社区大学

Declaring a Class: the .h file #pragma once #include string using namespace std; class Student { private: string myFirst; string myLast; int myCredits; double myGPA; string myClassYear; public: Student(void); Student(string, int, double); ~Student(void); void setMyFirst(string); void setMyLast(string); void setMyGpa(double); void setMyClassYear(string); string getMyFirst(void); string getMyLast(void); int getMyCredits(void); double getMyGPA(void); string getMyClassYear(void); void addCredits(int); string toS

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档