Printf Issues

From: Ao the Unstoppable (cyanbloodbane_at_gmail.com)
Date: 11/30/04


Date: 29 Nov 2004 22:21:56 -0800

Hi. I'm pretty new to C/C++, and I was wondering how to correctly use
printf and then create a new line. What in printf creates a new line,
as if it was endl; in cout?

For example:

printf ("Hello World!");
printf ("How are you?");

How would I make it skip a line to output:

Hello World!
How are you?

...rather than:

Hellow World!How are you?

Thanks.



Relevant Pages

  • ToString()
    ... in C/C++ I can use printfto add mack the output wit to parameter, ... for example if t = 0xA after printf I will get 0x0A. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Printf Issues
    ... >> printf and then create a new line. ... >> Hellow World!How are you? ... '\n' is the newline character in c/c++ ...
    (comp.lang.cpp)
  • Re: Newbie: The C / C++ Issue
    ... printf however, is ... enviroment have to be specially written for the kernel anyway. ... most pople could go their entire life without cout. ... and strings, but if you want your strings formatted, cout isn't much fun. ...
    (freebsd-questions)
  • Re: functionality
    ... > in c and c++ there is a useful way to refresh an output line in printf ... > and cout using \r meta command. ...
    (comp.lang.python)
  • Re: Something like Debug.WriteLine()?
    ... I need to print some additional information during the execution ... of my DirectX application. ... I tried to use printf() and cout, ...
    (microsoft.public.vc.language)