Otóż chciałem zrobić dla zabawy malutki programik w stylu Hello World, ale jakimś cudem wyskakują mi w nim błędy chociaż zmieniłem tylko tekst który ma się wyświetlić.
To kod:
// pierwszy program
#include <iostream>
#include <conio.h>
#include "stdafx.h"
void main()
{
std::cout << "Witaj! Życzę miłego dnia! Pozdrawiam! : )" << std::endl;
getch()
}
Na początku gdy nie miałem: #include "stdafx.h" wyskakiwał mi błąd: fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
Dobra, dodałem #include "stdafx.h" , lecz tym razem wyskoczył mi inny błąd: error C3861: 'getch': identifier not found
O co chodzi?