c++調用其他源文件函數 Error Link2019

在c++中,主函數調用另一個cpp文件中的funcm函數,一種方法爲,在自建頭文件中聲明該函數,並且在描述funcm函數實體的cpp文件中引用頭文件。具體示例如下: //主函數源文件SummerSchool.cpp #include "stdafx.h" #include<iostream> #include"Account.h" #include<Windows.h> int main() {
相關文章
相關標籤/搜索