#include <iostream> #define MAX_VALUE 0x7fffffff using namespace std; //在这里我先反思一下,不知…
#include<stdio.h> #include<stdlib.h> /*tannnn*/ void Swap(int &a,int &…
#include <iostream> #include <stdlib.h> #include <stdio.h> #include <…
#include<stdio.h> #define maxsize 100 typedef struct string { int n; char s[maxsize]…
#include <iostream> using namespace std; //实现一个函数求字符串的长度。 int my_length(const char *…
思路1——全排列的递归实现核心思想: 比如对于字符串”abc”, 第一步:求所有可能出现在第一个位置的字符即:a,b,c。 使用方法:把第一个字符和后面的b、c字符进行交换。 第二…
有很多时候为了测试效率问题,我们需要对时间的精确掌控,mfc给我们封装的时间函数就满足不了我们的需求了。 这时候需要使用下面两个函数 BOOL QueryPerformanceFr…
/* * Make sure project type is windows application */ #define _WIN32_WINNT 0x0500 #include…
/* This is a program for Encryption and Decryption This program uses the Simple Data Encry…
#define _WIN32_WINNT 0x0500 #include<fstream> #include<windows.h> using namesp…
/* * main.c * ---------------------------------------------- * 2013-01-09 chrisniu1984@gma…
#include "stdio.h" struct date { int y; int m; int d; }; void main() { date da; …