Welcome to WebmasterWorld Guest from 50.17.114.227

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

what does /n do?

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

Junior Member

10+ Year Member

joined:Feb 16, 2003
posts:60
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 13, 2002
posts:2162
votes: 0


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

cout << "hello World\n"

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

Administrator

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

joined:July 24, 2001
posts:15755
votes: 0


it is a newline character \n

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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 0


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