#ifndef _TT_H_
#define _TT_H_#include <windows.h>typedef void (*pp)();class Test
{
public:
Test(int num) : n(num)
{ } void call(pp a)
{
printf("call\n");
CreateThread(0, 0, te, 0, 0, 0);
CreateThread(0, 0, te, LPVOID(a), 0, 0);
}
private:
static DWORD WINAPI te(LPVOID lp)
{
printf("aaaa\n"); return 0;
} int n;
};#endif
#include <iostream>
#include <stdio.h>
#include "tt.h"using namespace std;void print()
{
printf("print\n");
}int main()
{
Test t(2);
t.call(print); return 0;
}运行结果:
1 call2 call
  aaaa3 call
  aaaa
  aaaa
  aaaa我就不明白 一个程序我反复运行 怎么会出现三种结果呢
请大虾们帮忙