POV-Ray : Newsgroups : povray.off-topic : A question about C++ : Re: A question about C++ Server Time
7 Sep 2024 13:24:57 EDT (-0400)
  Re: A question about C++  
From: Kevin Wampler
Date: 13 May 2008 16:29:25
Message: <4829fa25$1@news.povray.org>
I have no idea if there's a `proper' convention for that or not, but I 
generally treat "cout" as a verb and would just say "cout five".

Darren New wrote:
> How do you pronounce "cout << 5" in english? If you were to read that 
> statement over the phone to someone, what would you say? Obviously not 
> "cout logical-shift-left 5".  Would you really say "count 
> operator-less-than-less-than five"?
> 
> Incidentally, I think C# does a good job of unifying the benefits of 
> printf-style formating with the benefits of C++-style formatting. Of 
> course, it means that everything you want to print actually has to be an 
> object and you have to be able to look up routines at runtime, so it has 
> an efficiency aspect compared to the C++ method. But there's actually a 
> number of layers of formatting control going on there, all of which the 
> user can override in particular classes as well as doing the
> "cout << hex() << 29" sort of per-class custom formatting controls.
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.