Chinaunix首页 | 论坛 | 博客
  • 博客访问: 329740
  • 博文数量: 73
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1293
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-07 11:17
个人简介

爱运动,爱看书,爱生活!

文章分类

全部博文(73)

文章存档

2014年(7)

2013年(66)

发布时间:2013-07-28 13:15:14

1    在类中,非static成员属于类的每一个对象,static成员不一样,她独立于这个类的任意对象而存在,        每个static成员是与类关联的对象,而不是与该类的对象关联。,正因为如此,static 成员没有this         形参,.........【阅读全文】

阅读(2280) | 评论(2) | 转发(0)

发布时间:2013-07-28 11:36:04

#include <iostream>#include <cstdio>#include <pthread.h>using namespace std;class Book{    private:    static  void *s_run( void *d );     int id;      pthread_t tid;    publ.........【阅读全文】

阅读(1394) | 评论(0) | 转发(0)

发布时间:2013-07-27 17:38:51

今天周末,一大早就起床写了个简单的用C访问mysql的程序,当然是作为学习测试用的了。但编译过程中遭遇了找不到头文件的问题。my-acer ~/c $ gcc -o mysql_test mysql_test.c -lmysqlclientmysql_test.c:2:19: fatal error: mysql.h: No such file or directorycompilation terminated.........【阅读全文】

阅读(1356) | 评论(0) | 转发(0)

发布时间:2013-07-27 17:38:26

废话不多说,直接上代码:#include <stdio.h>#include <mysql/mysql.h>#define HOST "192.168.56.2"#define DB "webdevtest"#define USER "webdev"#define PWD "webdev"#define PORT 3306int main(){&nbs.........【阅读全文】

阅读(1402) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册