// UseLib.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "..\StaLib\StaLib.h"
//#pragma comment(lib,"..\\StaLib\\debug\\StaLib.lib")
int main(int argc, char* argv[])
{
CDerived* objD=CDerived::NewInstance();
objD->getset1(false,1);
objD->getset2(false,2);
printf("%d,%d\n",objD->getset1(true),objD->getset2(true));
printf("Hello World!\n");
return 0;
}
/*
CBase()
CDerived
1,2
Hello World!
Press any key to continue
*/
UseLib.cpp
最新推荐文章于 2021-04-29 02:07:57 发布