
C++
小鹏聊智驾
上汽智驾搬砖
展开
-
一文搞定C++入门到入土(附网盘链接)
文章目录前言系列文章链接学习资源前言这个系列主要根据清华大学郑莉教授的MOOC课程以及相关书籍编写而来,主要形式是思维导图以及不断维护升级的一个综合案例代码。建议大家以视频为辅,多动脑多动手为上。现将这个系列各篇文章在此做个索引,本人水平有限,希望大家多提宝贵意见。系列文章链接01 C++ 简单程序设计02 函数03 类与对象04 数据的共享与保护05 数组&指针&...原创 2020-04-10 20:51:11 · 6199 阅读 · 1 评论 -
【C++脑图系列11】异常处理
脑图代码//date.h#ifndef __DATE_H__#define __DATE_H__#include <iostream>class Date { //日期类private: int year; //年 int month; //月 int day; //日 int totalDays; //该日期是从公元元年1月1日开始的第几天publ...原创 2020-04-10 20:23:08 · 444 阅读 · 1 评论 -
【C++脑图系列10】流类库与输入输出
脑图代码//date.h#ifndef __DATE_H__#define __DATE_H__#include <iostream>class Date { //日期类private: int year; //年 int month; //月 int day; //日 int totalDays; //该日期是从公元元年1月1日开始的第几天publ...原创 2020-04-10 19:50:46 · 471 阅读 · 0 评论 -
【C++脑图系列09】泛型程序设计与STL
脑图代码//date.h#ifndef __DATE_H__#define __DATE_H__class Date { //日期类private: int year; //年 int month; //月 int day; //日 int totalDays; //该日期是从公元元年1月1日开始的第几天public: Date(int year = 1, in...原创 2020-04-10 15:55:48 · 463 阅读 · 0 评论 -
【C++脑图系列08】群体类和群体数据的组织
脑图代码//date.h#ifndef __DATE_H__#define __DATE_H__class Date { //日期类private: int year; //年 int month; //月 int day; //日 int totalDays; //该日期是从公元元年1月1日开始的第几天public: Date(int year, int mo...原创 2020-04-08 23:55:32 · 627 阅读 · 0 评论 -
【C++脑图系列07】多态性
脑图代码//date.h#ifndef __DATE_H__#define __DATE_H__class Date { //日期类private: int year; //年 int month; //月 int day; //日 int totalDays; //该日期是从公元元年1月1日开始的第几天public: Date(int year, int mo...原创 2020-04-08 18:02:11 · 386 阅读 · 0 评论 -
【C++脑图系列06】继承与派生
脑图代码#include "stdafx.h"#include <iostream>using namespace std;class Vehicle{public: int MaxSpeed; int Weight; void Run(){cout<<"Vehicle run"<<endl;}; void Stop(){cout&l...原创 2020-04-08 15:19:47 · 798 阅读 · 1 评论 -
【C++脑图系列05】数组&指针&字符串
脑图代码// employee.h#ifndef EMPLOYEE_H_#define EMPLOYEE_H_#include <iostream>using namespace std;class Employee { char* name; char* address; char* city; char* code;public: Employee...原创 2020-04-08 15:17:51 · 665 阅读 · 0 评论 -
【C++脑图系列04】数据的共享与保护
脑图代码//client.h#ifndef CLIENT_H_#define CLIENT_H_class Client { static char ServerName; static int ClientNum;public: static void ChangeServerName(char name); static int getClientNum();};...原创 2020-04-08 15:14:01 · 364 阅读 · 0 评论 -
【C++脑图系列03】类与对象
脑图代码#include <iostream>using namespace std;enum CPU_Rank {P1=1,P2,P3,P4,P5,P6,P7};class CPU{private: CPU_Rank rank; int frequency; float voltage;public: CPU (CPU_Rank r, int f, ...原创 2020-04-08 15:09:54 · 581 阅读 · 1 评论 -
【C++脑图系列02】函数
脑图代码#include <iostream>#include <cmath>using namespace std;int max1(int x,int y); //两个整数的最大值int max1(int x,int y,int z);//三个整数的最大值double max1(double x,double y);//两个双精度数的最大值do...原创 2020-04-08 15:06:57 · 630 阅读 · 0 评论 -
【C++脑图系列01】C++ 简单程序设计
脑图代码#include <iostream>using namespace std;//int _tmain(int argc, _TCHAR* argv[])int main(){ cout<<"hello world!\n"; printf("happy new year"); return 0;}原创 2020-04-08 15:02:23 · 1344 阅读 · 0 评论