- 博客(6)
- 收藏
- 关注
原创 C++实现文件加密
实现文件加密。#include <iostream>#include <string.h>#include <stdlib.h>/* run this program using the console pauser or add your own getch, system("pause") or input loop */#define MAX_...
2020-04-22 23:11:37
499
原创 C++实现计算器功能
实现简单的计算器功能注意:判断数值和表达式 的合理性。#include <stdio.h>#include <stdlib.h>#include <string.h>#define MAX_LEN 200//判断字符是否合理 0-9 . + - * / bool CheckInput(char c){ //0-9 if (0x30 &l...
2020-04-22 23:08:27
593
原创 C++ 实现UDP聊天
头文件:分为Windows平台和Linux平台运行:using namespace std;#define WIN_FLAG#ifdef WIN_FLAG#include <stdlib.h>#include <stdio.h>#include <winsock2.h>#include <windows.h>#include &...
2020-04-22 23:04:08
573
原创 C++ 实现文件传输
代码如下:#include using namespace std;#include<stdio.h>#include<stdlib.h>#include <winsock2.h>#include <windows.h>#define RECV_BUF_LEN 1024#define ERROR_RETURN(){WSAClean...
2020-04-22 22:47:11
929
原创 C语言基础语法
C 的五个令牌(Tokens)分号:每个语句必须以分号结束。注释:单行注释使用//, 多行注释使用/**/标识符:标识变量、函数,或任何其他用户自定义项目的名称。一个标识符以字母 A-Z 或 a-z 或下划线 _ 开始,后跟零个或多个字母、下划线和数字(0-9)等,不允许出现标点字符。关键字:不能作为常量名、变量名或其他标识符名称。auto else long switc...
2020-04-19 22:25:01
390
原创 C语言
C语言介绍C语言最初由 Dennis Ritchie 于 1969 年到 1973 年在 AT&T 贝尔实验室里开发出来,主要用于重新实现 Unix 操作系统。发展历程:当今几乎所有的实用的编译器/解释器都是用 C 语言编写的。现代大多数语言都借鉴了C语言的特性。C语言与其他语言C++:包含了C语言所有特性,增加了类和其他特性支持面向对象编程。Java:基于C++,包含了C一...
2020-04-19 22:10:32
521
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人