会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
helloweworld
博客园
首页
新随笔
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
48
下一页
2013年10月4日
多表连接查询
摘要: 注: 所谓连接, 指的是把两张表的字段“连接”起来, 放在一个结果集里,即连接的是两张表的字段! 有三张表,person_info学生信息;class_schedule选课信息;class_size班级人数。 如下: 格式: SELECT table_name1.field1 table_name2
阅读全文
posted @ 2013-10-04 17:42 helloweworld
阅读(313)
评论(0)
推荐(0)
2013年10月2日
再看单例模式
摘要: C++版本: classSingleton{public: staticSingleton&getInstance() { returninstance; }private: Singleton(){}; Singleton(constSingleton&); Singleton&operator=(constSingleton&); staticSingletoninstance;};Sing...
阅读全文
posted @ 2013-10-02 21:20 helloweworld
阅读(162)
评论(0)
推荐(0)
2013年9月9日
位域的sizeof(二)
摘要: #include using namespace std; int main(void){ struct test2 { char a:2; char b:2; int c:2; char d:2; }t2; memset(&t2, 0, sizeof(t2)); t2.a = 3; t2.b = 2; t2.c = 3; t2.d = 3; char *p = (char*)&t2; ...
阅读全文
posted @ 2013-09-09 16:23 helloweworld
阅读(281)
评论(0)
推荐(0)
2013年9月7日
进程地址空间(二)
摘要: #include#include#includeusingnamespacestd;#defineWIDTH40intBSS_global_uninit_a;intBSS_global_uninit_b;intstaticBSS_global_uninit_static_a;intstaticBSS_global_uninit_static_b;intDS_global_init_a=1;intD...
阅读全文
posted @ 2013-09-07 21:29 helloweworld
阅读(183)
评论(0)
推荐(0)
进程地址空间(一)
摘要:
阅读全文
posted @ 2013-09-07 21:28 helloweworld
阅读(155)
评论(0)
推荐(0)
进程概论
摘要: 1.进程模型 正在运行的程序实例。 2.创建进程 3.进程的终止 正常、出错、被kill。 4.进程的层次结构 父子进程、进程组。 5.进程的状态 6进程的实现 操作系统维护一张进程表,每个进程占一个进程表项(PCB)。
阅读全文
posted @ 2013-09-07 12:01 helloweworld
阅读(154)
评论(0)
推荐(0)
2013年9月5日
string的sizeof
摘要: int main(){ string str[] = {"12345", "12", "12"}; cout << sizeof(string) << endl; cout << sizeof(str) << endl; return 0;} 412
阅读全文
posted @ 2013-09-05 11:24 helloweworld
阅读(215)
评论(0)
推荐(0)
2013年8月29日
计算程序运行时间
摘要: #include struct timeval tv_begin, tv_end; gettimeofday(&tv_begin, NULL); //此处是要测试的代码 gettimeofday(&tv_end, NULL); 执行时间(微秒) = 1000000 * (tv_end.tv_sec - tv_begin.tv_sec) + tv_end.tv_usec - tv_begi...
阅读全文
posted @ 2013-08-29 20:56 helloweworld
阅读(262)
评论(0)
推荐(0)
sleep所在头文件
摘要: sleep所在头文件 确切说windows下:#include Linux下:#include
阅读全文
posted @ 2013-08-29 20:51 helloweworld
阅读(3614)
评论(0)
推荐(0)
Mysql复制表结构、表数据
摘要: http://www.2cto.com/database/201202/120259.html 1、复制表结构及数据到新表CREATE TABLE 新表SELECT * FROM 旧表 2、只复制表结构到新表CREATE TABLE 新表SELECT * FROM 旧表WHERE 1=2或CREATE TABLE 新表LIKE 旧表
阅读全文
posted @ 2013-08-29 20:49 helloweworld
阅读(164)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
48
下一页