Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C and C++

Unregistered, Check out the Coder Battles in the Announcement and Game forums.

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 05-17-2008, 07:05 PM
chili5's Avatar   
chili5 chili5 is offline
Code Warrior
 
Join Date: Mar 2008
Age: 15
Posts: 3,447
Credits: 312
Rep Power: 30
chili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to allchili5 is a name known to all
Default Re: TOTAL newb

That's how I learned to do it, theirs probably better ways but I haven't had any problems using that method as of yet.
__________________
Success is the ability to go from failure to failure without losing your enthusiasm. ~ Winston Churchill
Braingle
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 05-19-2008, 03:01 PM
Zael's Avatar   
Zael Zael is offline
Newbie
 
Join Date: Jan 2008
Posts: 10
Credits: 0
Rep Power: 0
Zael is on a distinguished road
Default Re: TOTAL newb

Code:
#include <stdio.h>
#include <stdlib.h>

main ()
{
     printf("hello, world/n");
     system("pause");
}
The italic part is what you actually need. Even as your program works well, the conclusion is that it's very short and it's execution can't be seen, or it simply blinks for a milisecond, as you said.

The system("pause"); part simply means a pause in the console. It actually waits for you to tap something on keyboard in order to continue..

P.s. Please note the bolded /n part as you entered it on wrong way.. Those are to different chars, which means /n is not the same as \n.
If I understood correctly, you wanted a new line, and it's correct to use only \n.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-20-2008, 09:28 AM
soku11 soku11 is offline
Newbie
 
Join Date: May 2008
Location: Warsaw, Poland
Posts: 12
Credits: 0
Rep Power: 0
soku11 is on a distinguished road
Default Re: TOTAL newb

Zael you better look at previous page. v0id has already shown your method
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 05-20-2008, 02:53 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,452
Last Blog:
Web slideshow in JavaS...
Credits: 1,333
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: TOTAL newb

I suppose he was just explaining it further.
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 05-25-2008, 07:09 AM
gamx gamx is offline
Newbie
 
Join Date: May 2008
Posts: 4
Credits: 0
Rep Power: 0
gamx is on a distinguished road
Default Re: TOTAL newb

system("") uses system commands native to your operating system(OS) in which the particular case is Windows, these commands may differ from OS to OS so make a brief mental note
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #16 (permalink)  
Old 05-30-2008, 05:16 AM
RavenE's Avatar   
RavenE RavenE is offline
Newbie
 
Join Date: May 2008
Posts: 8
Credits: 0
Rep Power: 0
RavenE is on a distinguished road
Default Re: TOTAL newb

I'm kinda new to c and c++ but you can just put the code:

getchar ();

it waits for input so you can close the program next time you press something
Sorry if it basic (im new like i said)
__________________
----Raven Studios----
-Programming Central-
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 06-02-2008, 10:13 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 7,452
Last Blog:
Web slideshow in JavaS...
Credits: 1,333
Rep Power: 61
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: TOTAL newb

Nah, we've all gotta start somewhere.
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Total Newbie to C# - Hope ye can help! grungefreak1 Introductions 3 11-26-2007 07:21 AM
2D Array newb The Midnighter Java Help 3 11-06-2007 09:56 PM
I am a total Newb... BadMrPat General Programming 5 05-01-2007 12:06 PM
Help a Newb Learn it.. Mushroomer Visual Basic Programming 1 03-28-2007 05:30 PM
total members visited today Void The Lounge 3 07-15-2006 12:25 PM


All times are GMT -5. The time now is 12:59 AM.

Contest Stats

Xav ........ 1333.07
MeTh0Dz|Reb0rn ........ 1059.52
John ........ 887.37
morefood2001 ........ 879.43
marwex89 ........ 869.98
WingedPanther ........ 851.68
Brandon W ........ 764.23
chili5 ........ 312.39
Steve.L ........ 254.16
dcs ........ 225.25

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 82%

Ads