Witam,
Mam kod:
#include
#include
#include
void main()
{
char dateStr[9];
char timeStr[9];
_strdate(dateStr);
_strtime(timeStr);
std::cout << "Aktualnie jest !" << std::endl;
std::cout << "Data: " << dateStr << " !" << std::endl;
std::cout << "Godzina: " << timeStr << " !" << std::endl;
_getch();
}
I działa pod windowsa, a gdy chciałem skompilować pod linuxa to się nie dało ;/. Gdy kompilowałem kod pod linuxa wyglądał tak:
#include
#include
void main()
{
char dateStr[9];
char timeStr[9];
_strdate(dateStr);
_strtime(timeStr);
std::cout << "Aktualnie jest !" << std::endl;
std::cout << "Data: " << dateStr << " !" << std::endl;
std::cout << "Godzina: " << timeStr << " !" << std::endl;
}
Ponieważ linux nie wie co to conio.h.
Ktoś wie jak to naprawić ?