自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

原创 C语言字符串操作

char *strchr(const char *s, int c); 功能:返回字符串s中,字符c第一次出现的地址 成功返回第一次出现c的地址 失败返回NULL char *strrchr(const char *s, int c); 功能:返回字符串s中,字符c最后一次出现的地址 成功返回最后一次出现c的地址 失败返回NULL char *strchrnul(con...

2019-09-19 08:58:49 118

原创 单例define

#define ICT_INSTANCE_CONSTRUCTOR(Module) private:\ static Module* _instance;\ Module(){};\ ...

2019-09-17 14:30:58 144

转载 对称加密和非对称加密

原创地址:http://www.cnblogs.com/jfzhu/p/4020928.html 转载请注明出处 (一)对称加密(Symmetric Cryptography) 对称加密是最快速、最简单的一种加密方式,加密(encryption)与解密(decryption)用的是同样的密钥(secret key)。对称加密有很多种算法,由于它效率很高,所以被广泛使用在很多加密协议的核...

2019-05-22 14:56:18 83

转载 i++ and ++i

a = ++i,相当于 i=i+1; a = i; a = i++,相当于 a = i; i=i+1; 如果有表达式 a = i++ 它等价于 a = i ; i = i + 1; 如果有表达式 a = ++i 它等价于 i = i + 1; a = i; 1 首先两者的区别是:前者是先赋值,然后再自增;后者是先自增,后赋值 2 ++i和i++都...

2019-04-30 09:12:50 140

原创 3.Longest Substring Without Repeating Characters

Given a string, find the length of thelongest substringwithout repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: ...

2019-04-30 08:56:53 64

原创 2.Add two numbers

You are given twonon-emptylinked lists representing two non-negative integers. The digits are stored inreverse orderand each of their nodes contain a single digit. Add the two numbers and return i...

2019-04-26 13:48:35 59

原创 1.two sum

Given an array of integers, returnindicesof the two numbers such that they add up to a specific target. You may assume that each input would haveexactlyone solution, and you may not use thesame...

2019-04-25 17:17:02 71

原创 文件的输入输出

#include <iostream> using namespace std; #include <stdio.h> #include <stdlib.h> int main(int argc,char**argv) { FILE *fp = NULL; fp = fopen("/tmp/exercise", "w+"); if (fp...

2019-04-24 15:54:12 71

转载 链表类

#include<iostream> using namespace std; template<class T> class Link { public: Link(); void add(T& t); void remove(T &t); void print_link(); void modify(T &am...

2019-04-24 14:47:02 882

原创 工厂模式(厨师)

//示意图 略 //自我练习不具备参考价值 #include<iostream> using namespace std; class Food { public: virtual void message() { cout<<"this is food"<<endl; } }; class meat : publ...

2019-04-23 10:56:06 144

原创 简单工厂模式

#************************ ************************# #include<iostream> using namespace std; typedef enum { T80 = 0, T88 }TankType; class Tank { public: virtual void createTank()=...

2019-04-23 10:49:31 103

原创 贪吃蛇 Linux C语言 第二次小练手

/********************** * 项目名称:贪吃蛇 * 项目要求:在GCC 下 完成贪吃蛇的游戏 * 项目采用的知识: * 1.链表(贪吃蛇,食物) * 2.构图(边框,贪吃蛇,食物,背景) * 3.随机数(食物) * 4.判断条件(蛇不能回头,不能碰尾巴,不能碰边框) * 5.积分 **********************/ #in...

2017-11-03 15:48:48 397

原创 2048 小游戏

一个简易的2048小游戏 算是学习C语言的一次小练手,马马虎虎把 /*********************************** 2048 游戏 游戏规则: 1.开始时在方块内随即产生两个数字 2 (需要随机数) 2.通过w a s d 控制游戏 (移动数字) 3.所有的数字都会随按键方向靠拢 4.在靠拢的过程中,如果相邻的数字一样的,相加 5.当整个界面中...

2017-10-17 11:14:57 418

multicast.tar

multicast

2019-09-27

空空如也

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

TA关注的人

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