Fork me on GitHub
摘要: fstat和stat的功能基本一致,只是函数中的参数不同 阅读全文
posted @ 2016-07-20 15:54 千秋此意 阅读(3181) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 10 int main(int arg, char *args[]) 11 { 12 13 // char s[]="abc.txt"; 14 int fd = open(args[... 阅读全文
posted @ 2016-07-20 15:31 千秋此意 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1 1 #include 2 2 #include 3 3 #include 4 4 #include 5 5 #include 6 6 #include 7 7 #include 8 8 #include 9 9 10 10 int main(int arg,char *args[]) 11 11 { 12 12 13 13 if(arg0) 2... 阅读全文
posted @ 2016-07-20 15:10 千秋此意 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; typedef int(*Dllfun)(int , int); void main() { Dllfun f; HINSTANCE hdll; hdll = LoadLibrary("MyDll.dll"); if (hdll == NULL) { FreeLibrary(hdll); } f = (Dllfun)... 阅读全文
posted @ 2016-07-06 14:30 千秋此意 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1.首先下载配置mySql(可参考:http://jingyan.baidu.com/article/f3ad7d0ffc061a09c3345bf0.html) 2.配置VC环境 (1)将libmysql.lib文件拷贝到安装路径VC/bin下 (2)将libmysql.dll文件拷贝到windo 阅读全文
posted @ 2016-06-18 09:48 千秋此意 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 出现以上问题解决方案: 可以尝试修改csproj file 工程文件,然后添加如下代码: <PropertyGroup>… <DisableOutOfProcTaskHost>true</DisableOutOfProcTaskHost></PropertyGroup> 阅读全文
posted @ 2016-06-02 16:21 千秋此意 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: 直接上图(点击“重置”按钮,问题解决) 阅读全文
posted @ 2016-06-01 11:31 千秋此意 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 4 bool Check_huiweng(const char* pstr, int n) 5 { 6 if (pstr == NULL) 7 return false; 8 char* front = co 阅读全文
posted @ 2016-05-27 15:06 千秋此意 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.VS中新建项目中包含两个C工程,将其中一个工程设为启动项,另一个工程如果没有定义main()函数,编译无法通过,会报“缺少入口”的错误。即:一个项目中多个工程,每个工程都需有入口函数main(),即使没有被设为启动项。 2. 解决This function or variable may be 阅读全文
posted @ 2016-05-21 12:39 千秋此意 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 选自《程序员的自我修养》 阅读全文
posted @ 2016-05-10 09:16 千秋此意 阅读(190) 评论(0) 推荐(0) 编辑