가능한 중복 :
A function-definition is not allowed here before ‘{’버그
내가, 내가 내 코드에서했던이 버그를 공유 할 수 중 하나를 싶습니다 찾기 어려운 사람들 :
#include <iostream>
void StartNuclearWar() {
std::cout << "War in progress..." << std::endl;
}
int main()
{
int a = 0;
// Get activation codes from C:\codes\
a = 1;
if(a == 0) {
StartNuclearWar();
}
}
어디입니까?
핵전쟁을보고 싶습니다! – StackedCrooked
ㅎ. 전처리기만이 백 슬래시로 처리 된 것 같아요. – Ancurio
@Ancurio 주석을 처리하는 전처리 기입니다 (스트림에서 지우는 것처럼). –