摘要: #includeusing namespace std;template T max(T a, T b){ return a > b ? a : b;}int main(int argc,char* argv[]){ int x = 10; int y = 20; cout > x; return ... 阅读全文
posted @ 2015-06-25 17:51 潘探 阅读(797) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;class A{public: A(int x, int y) :m_x(x), m_y(y) { } int compare(void) { cout m_y) return 1; return ... 阅读全文
posted @ 2015-06-25 16:31 潘探 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 首先在Visual Studio Tools 文件中打开Visual Studio 命令提示(2010),输入命令 notepad 打开记事本,写好程序保存,保存类型:所有文档 文件名:1.c 。再在Visual Studio 命令提示(2010)中输入 cl 1.c 命令。 即可生成 1.e... 阅读全文
posted @ 2015-05-23 09:24 潘探 阅读(414) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-05-21 11:19 潘探 阅读(1) 评论(0) 推荐(0) 编辑