静态链接库的使用方法

 

 

 

#include "stdafx.h"
#include "lib.h" //这里不能用<>只能用“”

#pragma comment(lib,"lib.lib");

int main(int argc, char* argv[])
{ int x=plus(1,2);
printf("Hello World!\n %d\n",x);
return 0;
}

 

posted @ 2016-10-30 22:58  zhuh102  阅读(365)  评论(0编辑  收藏  举报