自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 字符串和数的互换

数据转字符串字符串转为数值

2021-04-17 11:33:07 72

原创 reverse函数翻转

#include <iostream>#include <string>#include <algorithm>using namespace std;int main() { string str; //Declare a string getline(cin,str); //Input a line reverse(str.begin(),str.end()); //make the string reverse

2020-12-22 21:06:25 154

原创 C++程序设计

// ConsoleApplication25.cpp : 定义控制台应用程序的入口点。//1通信录的设计// 基本要求:// 定义date类,至少包括年月日;// 定义person类,至少包括姓名、性别和出生日期;// 定义人员(staff)类,从person类派生,至少包括电话、地址、邮政编码、邮箱、QQ号和类别(例如:同学、朋友等)。// 功能要求:// 1、设计菜单实现功能选择; // 2、输入功能:输入人员信息,并保存到文件中;// 3、查询功能:

2020-12-07 10:38:52 462

原创 类的定义

#include "stdafx.h"#include<iostream>#include<cstring>using namespace std;class Data{public: Data() {}; Data(int y, int m, int d); Data(Data &refcar); void set() { cout << "请输入生日:" << endl; cin >> year >

2020-11-28 20:31:55 527

原创 Vector容器

#include "stdafx.h"#include<iostream>#include<vector>using namespace std;int main(){ int n, a; vector<int>v; for (int i = 0; i<10; i++) v.push_back(i + 1); for (int i = 0; i<10; i++) cout << v[i] << " "; co

2020-11-28 20:26:19 65

原创 文件输入学生信息终极版

#include "stdafx.h"#include<iostream>#include<fstream>#include<string>using namespace std;class student{public: int getClassid() { return classID; } void setClassid(int cl_id) { classID = cl_id; } int getid() { return

2020-11-24 19:49:11 230 1

原创 终极版本

#include "stdafx.h"#include<iostream>#include<fstream>#include<string>using namespace std;class student{public: void set_grate() { cout << "输入学生所在年级:" << endl; cin >> grate; } void set_name() { cout &lt

2020-11-23 22:04:19 88

原创 C++改

#include "stdafx.h"#include<iostream>#include<string>#include<fstream>using namespace std;class student{private: int grade; int number; string name;public: void set_grade() { cout<<"请输入学生所在年级:"<<endl; cin&gt

2020-11-23 21:45:27 90

原创 c++创建学生文本文件

在#include "stdafx.h"#include<iostream>#include<fstream>#include<string>using namespace std;class student{public: void set_grate() { cout<<"输入学生所在年级:"<<endl; cin>>grate; } void set_name() { cout<<"

2020-11-18 22:14:51 1046

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除