Скажите почему Visual Studio требует #include"stdafx.h". Без неё ошибка, а Code::Bloks наоборот, с этой строкой не работает? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Скажите почему Visual Studio требует #include"stdafx.h". Без неё ошибка, а Code::Bloks наоборот, с этой строкой не работает?

3rd Apr 2017, 5:32 PM
Aleksey
Aleksey - avatar
2 Antworten
+ 6
Translate : Tell me why Visual Studio requires #include "stdafx.h". Without it an error, and Code :: Bloks on the contrary, with this line does not work?
6th Jun 2017, 5:23 AM
Art456
Art456 - avatar
+ 1
stdafx.h is a build-in project's file. It is using when 'Use precompiled headers' option is turned on in VisualStudio. If do not need precompiled headers, just turn this option off in the C++\Precompile headers menu of project's settings.
7th Jul 2017, 11:20 AM
Трололо Евлампиев
Трололо Евлампиев - avatar