牛骨文教育服务平台(让学习变的简单)
博客笔记
08
2015-04
C语言:将n个数输入时的顺序逆序排列,用函数实现。 2015-04-08
C语言:将n个数输入时的顺序逆序排列,用函数实现 #include void reverse(int *,int); int array[] = {0,1,2,3,4,5,6,7,8,9,10,12}; int i; reverse(array,11); for(i=0;i
26
2016-05
【C语言】三个数从大到小输出 2016-05-26
方法一: #include int main() { int a,b,c,t; printf("请输入三个数: "); scanf("%d%d%d",&a,&b,&c);  if(a
01
2014-12
五个数由大到小排列,插入一个数,顺序保持有序 2014-12-01
题目:如果一个数组中保存的元素是有序的(由大到小),向这个数组中插入一个数,使得插入后的数组元素依然保持有序 int N = 5; int number;   

			
				【C语言】要求任意输入10个数,然后按从小到大顺序输出
【C语言】要求任意输入10个数,然后按从小到大顺序输出 2015-04-18
//要求任意输入10个数,然后按从小到大顺序输出 #include int main() { int a[10]; int i,j; int temp; printf("请输入10个整数:"); for(i=0;i
29
2016-07
Win32字符串编码格式转化 2016-07-29
1.ascii转unicode wstring asciiToUnicode(string asciiStr) { int widesize = MultiByteToWideChar(CP_ACP, 0, (char*)asciiStr.c_str(), -1, NULL, 0); if(0 == widesize) { return st
05
2013-10
[C/C++]_[utf8和unicode的相互转换] 2013-10-05
场景: 1.有些库需要接收utf8字符串(也比如数据库表数据),而路径处理则需要unicode字符串,所有在windows下互相转换是必须的。 2.之前自己实现了utf8
13
2016-09
C++ 实现unicode到utf-8的转码 2016-09-13
思路: 获取字符串里面中的Unicode部分,然后将该部分转换位utf-8格式的字符,最后将字符串里面的所有Unicode替换为utf-8即可。 废话不多少,直接上
25
2014-01
c++ ANSI、UNICODE、UTF8互转 2014-01-25
 static std::wstring MBytesToWString(const char* lpcszString);     static std::string WStringToMBytes(const wchar_t* lpwcszWString);     static std::wstring UTF8ToWString(cons

			
				win32控制台输出带中文Unicode字符串
win32控制台输出带中文Unicode字符串 2016-08-20
方法一:    将Unicode字符集转化为ANSI字符集: // char rtn[200]; VOID wcs2mbs(LPCOLESTR wcstr, char* chResult) { size_t wLen = wcslen(wcstr) + 1; // 宽字符字符长度,+1
01
2015-11
win32API 读写ANSIUNICODEUNICODE BIG-ENDIANUTF-8格式文本 2015-11-01
#include #include #include //////////////////////////////////////////////////// // // 读写文件的简单API函数封装 // CFileBaseHelper //