摘要:
//简单.... 1 #include 2 #include 3 #include 4 using namespace std; 5 6 #define maxn 105 7 8 struct t 9 {10 int s;11 int e;12 };13 14 t T[maxn]... 阅读全文
2014年5月25日
2014年4月29日
摘要:
这道题比较简单,就是用数组存取其路径。如101和102是对门,其过道号可以记为51. 1和2之间的为1. 今早突然收到操作系统停课的通知,哈哈 回来就做一下水题,开心 1 #include 2 #include 3 int main() 4 { 5 //freopen("input.txt"... 阅读全文
2014年4月24日
摘要:
1.vc6.0新建工程MFCAppWizard[dll]工程命名LptMfcDll12.在lptMfcDll1.h添加函数名声明添加的代码:1 //lptAddBegin2 3 void lptMfcTest1(void);4 void lptMfcTest2(void);5 6 //lptAddE... 阅读全文
2014年4月23日
摘要:
动态链接库(一)1.新建文件夹,命名lpt2.用vc6.0建立一个空工程(Win32Dynamic-LinkLibrary),名称:lptDll13.新建C++文件,命名:lptDll1;新建.h文件,命名:lptDll1.;新建在工程内新建文本文件,命名:lptDll1.def(注意.def后缀一... 阅读全文
2014年4月20日
摘要:
贪心的运用,主要看其比值,取最大值实现贪心... 1 #include 2 #include 3 #include 4 using namespace std; 5 6 struct room 7 { 8 int j; 9 int f;10 bool operator (f... 阅读全文
摘要:
1 #include 2 #include 3 using namespace std; 4 5 int pow(int a,int b) 6 { 7 int ans = 1; 8 while(b--) 9 {10 ans *= a;11 }12 ... 阅读全文
摘要:
1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 //freopen("input.txt","r",stdin); 8 int a,b; 9 char op;10 int T;11... 阅读全文
摘要:
勾股定理... 1 #include 2 #include 3 using namespace std; 4 5 int main() 6 { 7 //freopen("input.txt","r",stdin); 8 int s[3]; 9 int T;10 in... 阅读全文
摘要:
1 #include 2 #include 3 int main() 4 { 5 //freopen("input.txt","r",stdin); 6 int i; 7 char a[1000]; 8 while(gets(a)) 9 {10 ... 阅读全文