- 博客(3)
- 资源 (7)
- 收藏
- 关注
原创 有关虚函数的覆盖 和 子类中函数的隐藏
通过一个例子来解释 #include using namespace std; class Base{ public: virtual void xfn(int i){ cout << "Base::xfn(int i)" << endl; } void yfn(float f){ cout
2015-08-26 14:31:40 685
原创 有关win32信号量和事件在多线程使用的小例子
#include "windows.h" #include "stdio.h" #include "conio.h" HANDLE g_hEvent = NULL; HANDLE g_hSem = NULL; long num = 0; int ch = 'a'; DWORD CALLBACK PrintProc(LPVOID pParam){ HANDLE nHandle [2] ={g_hS
2015-08-12 16:19:38 1230
原创 python_class_1 How to use def
def activity01(num1): '''Determine if an input number is Even of Odd''' if(num1 % 2 == 0): return 'Even' else: return 'Odd' print activity01(12) def activity02(num1, num2): '''Return the sum
2015-08-07 09:31:41 943
2012 Maryland High School Programming Contest
2013-04-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人