Re: again a newbee question

  • From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 13 Apr 2011 08:38:45 -0600

O. oops. In my defense, I haven't found coffee. :)
On 4/13/2011 7:46 AM, Jared Wright wrote:
It's there, just on the same line as the printf statement.
On 4/13/2011 9:35 AM, Littlefield, Tyler wrote:
good job on using int main, just don't forget a return 0; when you are
done. between the printf and the closing brace.
On 4/13/2011 6:36 AM, ashish rohtagi wrote:
here is my code it compiles correctly but text just shows on the
screen for 1 second, I want it to stay. #include<stdio.h>

int main()
{
printf("I will learn programming!\n"); return(0);
}


On 4/13/11, DaShiell, Jude T. CIV NAVAIR 1490, 1, 26
<jude.dashiell@xxxxxxxx> wrote:
You didn't put your printf statement in your message, but let me make a
guess. You didn't put a (\n) in before the closing quote mark so you
just put text on the screen without a line ending. That could be one
contributing factor. Another might be you didn't put an #include
<stdio.h> statement in at the top of your program and maybe used
#include<conio.h>. If that's the case, don't use printf with conio.h
unless you also include stdio.h. For conio.h, cprintf is the function
you want. Hope this helps.

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of ashish
rohtagi
Sent: Wednesday, April 13, 2011 8:04
To: programmingblind@xxxxxxxxxxxxx
Cc: punitdiwan@xxxxxxxxx
Subject: again a newbee question

friends, sorry here I am with another foolish question, sorry but here
is no one to teach and I am learning myself. when I print any text on
screen using printf it quickly disappears. what should I do that it
should stay? take care, regards. ashish
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind





__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind




--

Thanks,
Ty

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: