User forums > Help
Process terminated with status 0
Salient:
Well i started learning c++, writing my first hello world and console doesn't even appear.
--- Code: ---#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::endl;
return 0;
}
--- End code ---
And i get this in build log:
--- Code: ---Checking for existence: C:\Users\Salient\Desktop\Pamokos\Pirmas chapteris\bin\Debug\Pirmas chapteris.exe
Executing: "C:\Users\Salient\Desktop\Pamokos\Pirmas chapteris\bin\Debug\Pirmas chapteris.exe" (in C:\Users\Salient\Desktop\Pamokos\Pirmas chapteris\.)
Process terminated with status 0 (0 minutes, 0 seconds)
--- End code ---
adriano91:
Do you use 'Build' or 'Build and run' option?
Maybe console just has been closed.
Try to build and run this code:
--- Code: ---#include <iostream>
int main() {
std::cout << "Hello, world" << std::endl;
int n;
std::cin >> n;
return 0;
}
--- End code ---
Salient:
I use build and run. And how much time should i wait for program to run? Since only this happen's
--- Code: ---Checking for existence: C:\Users\Salient\Desktop\Pamokos\Pirmas chapteris\bin\Debug\Pirmas chapteris.exe
Executing: "C:\Users\Salient\Desktop\Pamokos\Pirmas chapteris\bin\Debug\Pirmas chapteris.exe" (in C:\Users\Salient\Desktop\Pamokos\Pirmas chapteris\.)
--- End code ---
i waited for about 2 minutes but nothing happens. Oh and in task mananger process tab i can see pirmas chapteris.exe is running but i can't see the console.
adriano91:
You don't have to wait so long, it should appear in 2-5 sec.
Try this: Menu Project -> Properties... -> tab 'Build targets' -> tick 'Pause when execution ends'
Salient:
It's already ticked.
Navigation
[0] Message Index
[#] Next page
Go to full version