Aplikacje Konsolowe

0

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.

0

mozesz dac:
scanf("%s",NULL);

0

#include <conio.h>
i _getch(); [cygaro]

0

#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;
}

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;

1 użytkowników online, w tym zalogowanych: 0, gości: 1