|
[Sponsors] |
January 23, 2011, 08:45 |
nl or endl or \n
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
Hi FOAMers
can any one tell me what is the difference between nl and endl and \n best regards |
|
January 23, 2011, 14:57 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33 |
endl flushes the buffer
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
January 24, 2011, 01:30 |
nl or endl or \n
|
#3 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
Dear Prof. Jasak
Thank you very much for quick reply. Would you please tell me when we must use endl when nl and when \n? Thank you very very much |
|
January 24, 2011, 04:45 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
January 24, 2011, 04:54 |
nl or endl or \n
|
#5 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
Thanks a lot
|
|
|
|