Mam jakiś program konsolowy w C++ np.:
#include <iostream.h>
int main()
{
cout << "Jakiś tekst\n";
return 0;
}
Co mam zrobić, żeby aplikacja nie zamykała się od razu po zakończeniu? pomocy, to dla mnie bardzo ważne.
Mam jakiś program konsolowy w C++ np.:
#include <iostream.h>
int main()
{
cout << "Jakiś tekst\n";
return 0;
}
Co mam zrobić, żeby aplikacja nie zamykała się od razu po zakończeniu? pomocy, to dla mnie bardzo ważne.
mozesz dac:
scanf("%s",NULL);
#include <conio.h>
i _getch(); [cygaro]
#include <iostream.h>
#include <conio.h>
int main()
{
cout << "Jakiś tekst\n";
getch();
return 0;
}
#include <iostream.h> <--- tu stdio.h zamiast iostream
#include <proces.h>
int main()
{
cout << "Jakiś tekst\n";
system("pause");
return 0;
}
#include <stdio.h>
#include <conio.h>
int main()
{
cout << "Jakiś tekst\n";
getch();
return 0;
}
lub tak
#include <stdio.h>
#include <proces.h>
int main()
{
cout << "Jakiś tekst\n";
system("pause");
return 0;