Hello World (my first app in C++)Hello World. virus scan https://www.virustotal.com/file/b659...is/1345275837/ Hello World.rar - Jotti's malware scan Hello World_mpgh.net.rar
Heres a simple step up for ya. Dont have to post the compiled exe though for something this simple. Could just post the source. Note- You dont need system("pause") to keep the console from quick closing sometimes, just depends on your compiler (i use CodeBlocks) Code: #include <iostream> #include <cstdlib> using namespace std; void function(){ cout << "Hello MPGH" << endl; system("pause"); } int main(){ function(); }
Originally Posted by h4344 Heres a simple step up for ya. Dont have to post the compiled exe though for something this simple. Could just post the source. Note- You dont need system("pause") to keep the console from quick closing sometimes, just depends on your compiler (i use CodeBlocks) Code: #include <iostream> #include <cstdlib> using namespace std; void function(){ cout << "Hello MPGH" << endl; system("pause"); } int main(){ function(); } Thanks for suggestion
Originally Posted by BluntGod_ This is nice and all , but how is this useful? It isn't.. he just want to show what he learned... We're all like that...
Originally Posted by General Shepherd It isn't.. he just want to show what he learned... We're all like that... Ohhh , I see... Good job then.
Originally Posted by h4344 Heres a simple step up for ya. Dont have to post the compiled exe though for something this simple. Could just post the source. Note- You dont need system("pause") to keep the console from quick closing sometimes, just depends on your compiler (i use CodeBlocks) Code: #include <iostream> #include <cstdlib> using namespace std; void function(){ cout << "Hello MPGH" << endl; system("pause"); } int main(){ function(); } He can Use this Code to Stop The Exe File from Closing Quickly. Code cin.get();
Originally Posted by dizzyeasy He can Use this Code to Stop The Exe File from Closing Quickly. Code cin.get(); system("pause"); does the same
Originally Posted by -InSaNe- system("pause"); does the same Yup But I am used to cin.get(); It's Shorter thou