小创作
雕虫小技,献丑献丑
陪培
让编程成为爱好,坚持才不会落后。
展开
-
【C++】基于STL的演讲比赛管理系统
speechManager.h#pragma once#include <iostream>#include <vector>#include <map>#include <functional>//greater头文件#include <deque>#include <numeric>//accumulate头文件#include "speaker.h"#include <algorithm>#in..原创 2021-06-23 15:14:38 · 230 阅读 · 7 评论 -
【C++】【职工管理系统】
workermanager.h#pragma once//防止头文件重复包含#include <iostream>#include "worker.h"using namespace std;#include "boss.h"#include "employee.h"#include "manager.h"#include <fstream>#define FILENAME "empFile.txt"class WorkerManager{public:.原创 2021-05-22 18:33:58 · 801 阅读 · 31 评论 -
C++实现通讯录的基本功能【代码】+【讲解】
C++版动态通讯录基本功能1.添加联系人;2.删除联系人;3.查找联系人 ;4.修改联系人·;5.打印联系人 ;6.清空联系人;0.退出通讯录代码如下#define _CRT_SECURE_NO_WARNINGS 1#include <iostream>#include <string>#define MAX 1000//最多储存联系人个数using namespace std;struct Person//设计联系人结构体{ string m_N原创 2021-04-24 16:07:32 · 481 阅读 · 22 评论 -
今天分享一个有趣的取钱游戏,假设捡到一张银行卡
取钱,输入密码并判断对错,一共三次机会,每次输入不管对错都有提示。#include <stdio.h>#include <string.h>#include <stdlib.h>int main(){int i = 0;char password[20] = { 0 };for (i = 0; i < 3; i++){printf(“请输入密码;>”);scanf_s("%s", password, 20);if (strcmp(pas原创 2021-02-01 09:48:35 · 805 阅读 · 0 评论 -
这里有小阳想对你们的新年祝福,祝大家2021新年快乐!财源滚滚,万事如意,都能找到对象,代码走起来!!!
新年快乐!新的一年,在这里祝五湖四海的兄弟姐妹们,新年愉快,回家的阖家欢乐,没能回家的祝你出门在外也能找到自己的年味!#include <stdio.h>#include <string.h>#include <stdlib.h>int main(){ int i = 0; char newyear[20] = { 0 }; for (i = 0; i < 11; i++) { printf("新年快乐! "); scanf_s(原创 2021-02-11 13:04:12 · 428 阅读 · 3 评论