General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 28th, 2010, 12:58 AM
silk 279 silk 279 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2010
Posts: 1 silk 279 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 20 sec
Reputation Power: 0
Question Need help new to c++

[FONT=Comic Sans MS]Well... I am working my way through the tutorial and i finished my project ... completely... so i hit compile and run the window to compile showed up and then it closed i tried to re-compile and run and the same strange occurrence appeared here is my code so you can see it... please help...





// My first program in C++

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
return 0;
}

Reply With Quote
  #2  
Old July 23rd, 2010, 05:01 PM
progone progone is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2010
Posts: 10 progone User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 5 m 9 sec
Reputation Power: 0
Just had the same issue, go and download, MS VC++ its free and it works really nice. I had issues with the compliers I was using. But MS VC++ works really nice.

Reply With Quote
  #3  
Old August 1st, 2010, 10:15 PM
Bobidybob's Avatar
Bobidybob Bobidybob is offline
Contributing Abuser
Click here for more information
 
Join Date: Apr 2007
Location: Starkville, MS
Posts: 336 Bobidybob User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 Days 15 h 51 m 40 sec
Reputation Power: 12
Send a message via AIM to Bobidybob
its because it finished the program and closed when done. If you want it to stay open so you can see your results, add a pause at the end or ask for user input so it waits for the user to tell it when to end:

Code:
// My first program in C++

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
cin.ignore();
return 0;
}


or

Code:
// My first program in C++

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
system("pause");
return 0;
}
__________________

Reply With Quote
  #4  
Old February 10th, 2011, 11:20 AM
strikeforcebet strikeforcebet is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 1 strikeforcebet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 sec
Reputation Power: 0
UFC 129 odds

Bet on mma, US players are welcome, recieve 140% more from first deposit ! URL

Reply With Quote
  #5  
Old March 21st, 2011, 02:52 AM
alexsmth114 alexsmth114 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 10 alexsmth114 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 20 sec
Reputation Power: 0
(Just had the same issue, go and download, MS VC++ its free and it works really nice. I had issues with the compliers I was using. But MS VC++ works really nice.) Nice accurate solution!!..

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Need help new to c++


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap