码迷,mamicode.com
首页 >  
搜索关键字:const char p    ( 57984个结果
GetGlyphIndicesA
函数功能:该函数将一个字符串转为字形下标的数组。此函数可用来确定一种字体里是否存在某个字形 控制台下代码: #include "stdafx.h" #include #include"stdio.h" void main() {  char ch[] = {'0'};  WORD chnl[20] = {0};  HDC hdc;   hdc = GetWindowDC(0)...
分类:其他好文   时间:2014-05-12 15:14:13    阅读次数:267
const
const
分类:其他好文   时间:2014-05-12 09:01:55    阅读次数:207
bcb安装控件方法汇总
1.BCB 菜单: Project->Options->Packages->Add[喝小酒的网摘]http://blog.const.net.cn/a/8496.htm如果是BCB6: 选择安装的文件夹 yb_base_c6.bpl 和 yb_comm_c6.bpl, 然后按“打开”按钮如果是BCB...
分类:其他好文   时间:2014-05-12 08:32:09    阅读次数:470
插头DP小结
首先是CDQ《基于连通性状态压缩的动态规划问题》论文上的题目:URAL 1519 Formula 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 15; 6 const int H...
分类:其他好文   时间:2014-05-12 08:14:39    阅读次数:433
启动文件、简单的消息框
C++中打开文件的方法。 1.system(); 函数原型: int system(char *command); 作用:发出一个DOS命令。 特点:该函数是同步的,不灵活。 2.WinExec() 3.ShellExecute() 4.CreateProcess() {CSDN:CODE:337983}...
分类:其他好文   时间:2014-05-11 14:28:00    阅读次数:334
数据结构《19》----String容器的三种实现
一、序言 一个简单的string 容器到底是如何实现的? 本文给出了 String 的三种从易到难的实现,涉及了 reference counting, copy on write 的技术。 二、第一个实现 我们设计的string类里面包含一个char* 的指针, 通过指针的管理,来实现string的基本功能。 废话不多说了,直接上代码: {CSDN:CODE:...
分类:其他好文   时间:2014-05-11 06:58:16    阅读次数:311
android开发中,在java中如何使用c提供过来char*
java中使用jni c中提供的char*数据...
分类:移动开发   时间:2014-05-11 06:54:22    阅读次数:392
《你必须知道的495个C语言问题》笔记--标准输入输出
getchar的返回值 这样的代码有什么问题: char c; while((c = getchar()) != EOF).... getchar返回值变量必须是int型。因为EOF通常定义为-1,二十进制为255的字符会被符号扩展,和EOF比较时会相等,从而 过早第结束输入。 feof函数的使用 为什么这些代码最后一行复制了两遍? #include #inclu...
分类:编程语言   时间:2014-05-11 06:22:53    阅读次数:422
wikioi 1225 八数码难题 IDA*
八数码0.0,我又来水博客了。 IDA*算法,A*为曼哈顿距离,判重用康拓展开。 #include #include #include #include #include using namespace std; int a[4][4]; int dx[]={0,0,-1,1}; int dy[]={-1,1,0,0}; char s[]="123804765"; int end[4]...
分类:其他好文   时间:2014-05-11 06:20:57    阅读次数:334
char*,const char*和string 三者转换
1. const char* 和string 转换(1) const char*转换为 string,直接赋值即可。 EX: const char* tmp = "tsinghua". string s = tmp;(2) string转换为const char*,利用c_str() ...
分类:其他好文   时间:2014-05-11 00:51:23    阅读次数:284
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!