04 2014 档案

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//加入头文件using System.Data;using System.D... 阅读全文
posted @ 2014-04-22 21:13 偶尔会寂寞 阅读(215) 评论(0) 推荐(0)
摘要:#include #include int main(){ FILE * fp, *efp; char filePath[]="C:\\Users\\zxf\\Desktop\\文件操作\\file.txt"; char name[50], oneLine[1024]; int i, number; fp = fopen (filePath, "w+");//清空原有内容打开 for(i=0;i<3;i++){ gets(name); fprintf(fp, "%s\n", name); } fclose(fp); //添加到. 阅读全文
posted @ 2014-04-12 22:09 偶尔会寂寞 阅读(165) 评论(0) 推荐(0)
摘要:setting->complier->linker settings->add->C:\Windows\System32\ws2_32.dll 阅读全文
posted @ 2014-04-12 10:28 偶尔会寂寞 阅读(256) 评论(0) 推荐(0)
摘要:调用API using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam); public const int WM_SYSCOMMAND = 0x0112; public const 阅读全文
posted @ 2014-04-11 19:48 偶尔会寂寞 阅读(110) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace 窗体翻转{ public partial class Form1 : Form { //导入user32.dll [System.... 阅读全文
posted @ 2014-04-11 19:24 偶尔会寂寞 阅读(179) 评论(0) 推荐(0)