上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 48 下一页
摘要: 注: 所谓连接, 指的是把两张表的字段“连接”起来, 放在一个结果集里,即连接的是两张表的字段! 有三张表,person_info学生信息;class_schedule选课信息;class_size班级人数。 如下: 格式: SELECT table_name1.field1 table_name2 阅读全文
posted @ 2013-10-04 17:42 helloweworld 阅读(284) 评论(0) 推荐(0) 编辑
摘要: C++版本: classSingleton{public: staticSingleton&getInstance() { returninstance; }private: Singleton(){}; Singleton(constSingleton&); Singleton&operator=(constSingleton&); staticSingletoninstance;};Sing... 阅读全文
posted @ 2013-10-02 21:20 helloweworld 阅读(157) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(275) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-09-07 21:28 helloweworld 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.进程模型 正在运行的程序实例。 2.创建进程 3.进程的终止 正常、出错、被kill。 4.进程的层次结构 父子进程、进程组。 5.进程的状态 6进程的实现 操作系统维护一张进程表,每个进程占一个进程表项(PCB)。 阅读全文
posted @ 2013-09-07 12:01 helloweworld 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(255) 评论(0) 推荐(0) 编辑
摘要: sleep所在头文件 确切说windows下:#include Linux下:#include 阅读全文
posted @ 2013-08-29 20:51 helloweworld 阅读(3584) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 48 下一页