Welcome to WebmasterWorld Guest from 54.144.77.26

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

what does /n do?

     

davis

8:06 pm on Mar 21, 2003 (gmt 0)

10+ Year Member



Im reading a book, and im just wondering, what does /n do? Does it just make the source coding look nice, or is there something else it does which I dont see?

Thanks

aspdaddy

8:09 pm on Mar 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Its a newline character in c++ IO stream :)

cout << "hello World\n"

jatar_k

8:10 pm on Mar 21, 2003 (gmt 0)

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



it is a newline character \n

if you are outputting html it helps code formatting when you view source through the browser.

andreasfriedrich

8:18 pm on Mar 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com] davis.

IŽd suggest reading Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post which contains a lot of useful information.

For PHP [php.net] see the table of escaped characters [php.net].

Andreas