码迷,mamicode.com
首页 >  
搜索关键字:hello    ( 17822个结果
C语言宏#和##
C语言宏#和##一、基本用途#用于将宏定义中的参数转换为字符串。例:存在宏#define TO_STRING(x) #x则TO_STRING(hello)展开为"hello"##用于拼接Token。例:存在宏#define DECLARE_HANDLER(x) x##_handler则DECLARE...
分类:编程语言   时间:2014-05-27 00:19:05    阅读次数:357
Linux 设备驱动程序 proc
不能再简化了#include#include#includeint meng_read_proc(char*page,char**start,off_t offset,int count,int*eof,void*data){ char*s="Hello. This is meng p...
分类:系统相关   时间:2014-05-26 15:52:49    阅读次数:463
c起步之hello world!
基本上最初的编程都会拿hello world来说事,其实能简单的运行出它来,c的编程环境就慢慢熟悉起来了。1.现在已经基本没有纯粹的c编译环境了,都是用兼容c++的编译工具来编译c,所以创建的都是c++模板;2.在vs2008 中建立一个project(c代码)步骤:1.file——new--pro...
分类:其他好文   时间:2014-05-26 14:42:19    阅读次数:203
内存分区
1 #include 2 #include 3 4 int k=1; 5 int main() 6 { 7 int i=1; 8 char *j; 9 static int m=1;10 char *n="hello";11 12 printf("栈区地址...
分类:其他好文   时间:2014-05-26 14:24:28    阅读次数:201
C++ Input Output
C++的IO比较复杂,记录一下碰到的问题:#include "stdafx.h"#include using namespace std;int main(int argc, char* argv[]){ cout << 22/5*3 << endl; printf("Hello Wor...
分类:编程语言   时间:2014-05-26 12:42:11    阅读次数:290
jQuery -> 获取/设置HTML或TEXT内容
jQuery提供了两个API可以直接用来为元素添加内容。 html()text() 其中html()是为指定的元素添加html内容 text()是为指定的元素添加文本内容 两者的区别在于,text中的内容是纯文本,不会被解析为html 如果要对如下html代码进行操作 使用html() $('p').html('Hello World, I am a...
分类:Web程序   时间:2014-05-23 02:36:25    阅读次数:381
char * string nsstring 之间的相互转换
std::string转NSString std::string _string("hello");NSString *str= [NSString stringWithCString:_string.c_str() encoding:[NSString defaultCStringEncoding]]; NSString转std::string NSString * ...
分类:其他好文   时间:2014-05-23 02:24:50    阅读次数:201
风景在路上
再过几个小时,就要参与2010级学生毕业设计的验收工作了。“产品”验收通过了,学生将进入写毕业设计说明书(论文)阶段。  在毕业设计环节,以前有过为一名学生从“Hello world”开始示范的经历,也有过黑着脸将“做不出来从我名下你就不要答辩”的苛刻,最终这两名学生都获得了他们在大学中从未有过的“成功”体验。是我的坚持,兑现了向他们“跟着我好好干,保你过”的承诺,实现了“在原有基础上得到提高”的...
分类:其他好文   时间:2014-05-23 01:41:02    阅读次数:269
node.js 和 node-webkit C++扩展方法
构建node扩展的方法: 1,安装node.js 版本为0.10.24.msi 2,安装node-gyp, npm install -g node-gyp 3,构建 hello工程 cd 到 node-gyp-hello\src node-gyp configure node-gyp build 构建node-webkit扩展的方法: 1,安装node.js 版本为0.10...
分类:编程语言   时间:2014-05-22 23:38:12    阅读次数:377
JS常用字符串处理方法总结
1.indexOf()方法,从前往后查找字符串位置,大小写敏感,从0开始计数。同理,lastIndexOf() 方法从后往前,两个方法对于相同的检索条件输出的结果是一样的 例如: var str="Hello World!" document.write(str.indexOf("Hello"))//输出0 document.write(str.indexOf("World"))/...
分类:Web程序   时间:2014-05-22 22:54:50    阅读次数:313
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!