// use_lib.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "header.h" #include <iostream> #include<vector> using namespace std; #pragma comment(lib, "test_lib.lib") int main() { int arr[] = { 1, 3, 5, 7, 9 }; //cout << add(2, 4) << endl; // cout << mut(6, 3) << endl; //cout << sub(5, 6) << endl; DisplayArrary(arr); //hello(); return 0; }
#include "stdafx.h" #include "header.h" #include <iostream> #include<vector> using namespace std; #pragma comment(lib, "test_lib.lib") int main() { int arr[] = { 1, 3, 5, 7, 9 }; cout << add(2, 4) << endl; cout << mut(6, 3) << endl; cout << sub(5, 6) << endl; DisplayArrary(arr); hello(); return 0; }编译后exe文件大小为46KB: