我已經聲明瞭三個對象指針fstream * output,fstream * input和dialog1 * dlg。幷包含dialog1.h。fstream對象指針
#include<fstream>
#include "stdafx.h"
#include "dialog1.h"
fstream *output;
fstream *input;
dialog1 *dlg
錯誤C2059:語法錯誤: '常數'(約對話框) 錯誤C2143:語法錯誤:缺少 ';'之前'*'
問:當我建立像失蹤的項目錯誤「;」出來了*輸入和*輸出和約* dlg語法錯誤const出來。什麼是聲明這些對象的方式?
確切的錯誤消息和代碼會有幫助。 – Adam 2012-01-10 02:38:58