Code::Blocks error multiple definition of 'mai

2019-09-22 07:15发布

i tried to install my first program but it doesnt run. As the default program runs correctly. I created the new file as File>new>empty file and saved as .cpp but the program doesnt run. Ive matched the program from the book and the default one.. What is wrong

1条回答
Summer. ? 凉城
2楼-- · 2019-09-22 07:24

you can only have one main. By removing the Untitled.cpp file you will only have one file, main.cpp. you give your new file a name instead of taking the default name "Untitled.cpp". Or you can simply create an new project

查看更多
登录 后发表回答