代码改变世界

Win32 窗口篇(3)

2011-03-20 12:59 by Clingingboy, 2271 阅读, 0 推荐, 收藏, 编辑
摘要:1.11 如何显示或隐藏窗口的标题栏 使用ModifyStyle方法改变参数来更改窗体样式 void CDemoDlg::OnTest1() { //删除标题栏风格 ModifyStyle(WS_... 阅读全文

Win32 窗口篇(2)

2011-03-20 00:11 by Clingingboy, 979 阅读, 0 推荐, 收藏, 编辑
摘要:1.6 如何设置窗口的大小和位置 void CDemoDlg::OnTest1() { //设置窗口的大小和位置 SetWindowPos(NULL, 0, 0, 320, 200, SWP_NO... 阅读全文

Win32 窗口篇(1)

2011-03-19 23:40 by Clingingboy, 3782 阅读, 0 推荐, 收藏, 编辑
摘要:例子来自某书… 目标:会用就OK,达到熟悉Win32 API的目的. 1.1 如何通过HWND获得CWnd指针 CWnd::GetSafeHwnd: Returns the window handle for a window. Returns NULL if the CWnd is not attached to a window or if it is used with a NULL CW... 阅读全文

数据结构近期-3月底未完问题

2011-03-14 21:42 by Clingingboy, 796 阅读, 0 推荐, 收藏, 编辑
摘要:重点记忆,只对我个人而言 已知二叉树前序和中序,求完整二叉树及后序 见数据结构154页 示例: 前序:ABCDEFG 中序: CBEDAFG 由于前序知道A肯定是根 由前序中得知A为跟的情况,再看中... 阅读全文

c++ template(4)基本技巧

2011-03-08 16:21 by Clingingboy, 868 阅读, 0 推荐, 收藏, 编辑
摘要:1.关键字typename 这里内部的的typename指示T::const_iterator是一个类型,而不是一个静态成员. #include <iostream>// print element... 阅读全文

c++ template笔记(3)非类型模板参数nontype template parameters

2011-03-08 14:56 by Clingingboy, 1127 阅读, 0 推荐, 收藏, 编辑
摘要:算是模板使用的一种技巧 用模板当数组元素参数维度 #include <stdexcept>template <typename T, int MAXSIZE>class Stack { privat... 阅读全文

c++ template笔记(2)模板类

2011-03-08 13:56 by Clingingboy, 4381 阅读, 1 推荐, 收藏, 编辑
摘要:1.自定义Stack模板类 #include <vector>#include <stdexcept>template <typename T>class Stack { private: std:... 阅读全文

c++ template笔记(1)模板函数

2011-03-08 13:28 by Clingingboy, 2402 阅读, 0 推荐, 收藏, 编辑
摘要:1.定义函数模板 template <typename T>inline T const& max (T const& a, T const& b){ // if a < b then use b ... 阅读全文

.net网络编程(4)TcpListener、TcpClient

2011-03-04 10:51 by Clingingboy, 2153 阅读, 1 推荐, 收藏, 编辑
摘要:MSDN例子 服务器端 用TcpListener监听,接受TcpClient,以NetworkStream传输数据 public static void Main(){ TcpListener se... 阅读全文

C++中const用法总结(转)

2011-02-25 20:00 by Clingingboy, 522 阅读, 0 推荐, 收藏, 编辑
摘要:http://wenku.baidu.com/view/30ee71c30c22590102029dea.html 作者JuKevin 1. const修饰普通变量和指针 const修饰变量,一般有... 阅读全文
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 66 下一页