473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

What does 'c' in 'cout' mean?

Hi,

I'm wondering what 'c' in "cout", "cin" mean? Does it mean "C++"? Or
the 'c' in <cassert>?

Thanks,
Peng

Oct 19 '07 #1
9 7109
On 10 19 , 9 13 , "PengYu...@gmail.com" <PengYu...@gmail.comwrote:
Hi,

I'm wondering what 'c' in "cout", "cin" mean? Does it mean "C++"? Or
the 'c' in <cassert>?
http://www.research.att.com/~bs/bs_faq2.html#cout

Oct 19 '07 #2
"Pe*******@gmail.com" <Pe*******@gmail.comwrote:
Hi,

I'm wondering what 'c' in "cout", "cin" mean? Does it mean "C++"? Or
the 'c' in <cassert>?
My guess is that it stands for "console".
Oct 19 '07 #3
On Oct 19, 6:13 am, "PengYu...@gmail.com" <PengYu...@gmail.comwrote:
Hi,

I'm wondering what 'c' in "cout", "cin" mean? Does it mean "C++"? Or
the 'c' in <cassert>?

Thanks,
Peng

In cout and cin the charecter "C" represents Console.

Oct 19 '07 #4
sr*********@gmail.com wrote:
On Oct 19, 6:13 am, "PengYu...@gmail.com" <PengYu...@gmail.comwrote:
>Hi,

I'm wondering what 'c' in "cout", "cin" mean? Does it mean "C++"? Or
the 'c' in <cassert>?

Thanks,
Peng


In cout and cin the charecter "C" represents Console.
I doubt that. It just writes to a stream; the standard output stream in
this case. That usually also happens to be a console, but that's
system-dependent.

Stroustrup claims the 'c' stands for character.

--
SM
rot13 for email
Oct 19 '07 #5
Shadowman wrote:
sr*********@gmail.com wrote:
>In cout and cin the charecter "C" represents Console.
I doubt that. It just writes to a stream; the standard output stream in
this case. That usually also happens to be a console, but that's
system-dependent.

Stroustrup claims the 'c' stands for character.
Which surprisingly matches wcout for wide-character output. ;-)

Markus
Oct 19 '07 #6
In message <47***********************@newsspool4.arcor-online.net>
Markus Moll <ma*********@esat.kuleuven.ac.bewrote:
Shadowman wrote:
>sr*********@gmail.com wrote:
>>In cout and cin the charecter "C" represents Console.
I doubt that. It just writes to a stream; the standard output stream in
this case. That usually also happens to be a console, but that's
system-dependent.

Stroustrup claims the 'c' stands for character.
Which surprisingly matches wcout for wide-character output. ;-)
Markus
I read somewhere (but I can't find the source) that functions in C
which have been adopted into C++ have the letter 'C' put in front, so
'function' becomes 'cfunction'.

Michael Bell
--
Oct 19 '07 #7
Michael Bell wrote:
>
I read somewhere (but I can't find the source) that functions in C
which have been adopted into C++ have the letter 'C' put in front, so
'function' becomes 'cfunction'.
Can you name one? Maybe you are thinking of the standard library
headers (<stdio.h-<cstdio>)?

--
Ian Collins.
Oct 19 '07 #8
On 2007-10-19 17:07:24 -0400, Michael Bell <mi*****@beaverbell.co.uksaid:
>
I read somewhere (but I can't find the source) that functions in C
which have been adopted into C++ have the letter 'C' put in front, so
'function' becomes 'cfunction'.
It's a good thing you can't find the source, 'cause it's wrong. <gWe
did that with the C header names, but not with functions or variables.

--
Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The
Standard C++ Library Extensions: a Tutorial and Reference
(www.petebecker.com/tr1book)

Oct 19 '07 #9
In message <5n************@mid.individual.net>
Ian Collins <ia******@hotmail.comwrote:
Michael Bell wrote:
>>
I read somewhere (but I can't find the source) that functions in C
which have been adopted into C++ have the letter 'C' put in front, so
'function' becomes 'cfunction'.
Can you name one? Maybe you are thinking of the standard library
headers (<stdio.h-<cstdio>)?
Yes, you're right. I was thinking of standard library headers. But
'cout' and 'cin' seem so obviously 'out' and 'in' with a 'c' in front
that I thought the same must apply.

Michael Bell.

--
Oct 20 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrey Mishenin | last post by:
While accessing MySQl data base by means of perl the value of variable $! sometimes equals " Resource temporarily unavailable". At the mean time everything works correct. What does that mean?...
2
by: pembed2003 | last post by:
Hi all, I recently saw a piece of code that looks like: class one{public: one(){} }; class two : public virtual one{public: two(){} }; class three : virtual public one{public: three(){} }; ...
4
by: pete | last post by:
I found it in the view source of a corporate website. <script Language="Javascript"> <!-- var keyMacro= ]; //--> </script>
6
by: **Developer** | last post by:
What does this mean: External component has thrown an exception. My program crashes after it leaves a subroutine. What I see during debugging is when I press F11 at the End Sub statement
2
by: tony | last post by:
Hello!! I know what an abstract class is which mean that the one of the derived class must define the abstract methods in the abstract class. So all the abstract methods in the abstarct class...
10
by: tony | last post by:
Hello!! I have some demo programs written in C# and they have this construction "" see below. I haven't seen this before so what does it mean ? public bool ShowDropDownButtons { get {...
9
by: JoeC | last post by:
m_iWidth = (int)pBitmapInfo->bmiHeader.biWidth; m_iHeight = (int)pBitmapInfo->bmiHeader.biHeight; What does this mean? I have seen v=&var->member.thing; but what does it mean when you...
0
by: steve | last post by:
What does it mean to set a value or April fools all year long :) http://beyondsql.blogspot.com/2008/03/sql-what-does-it-mean-to-set-value.html
14
by: Tony | last post by:
Hello! It says "Another limitation that you need to be aware of is that using the operator == and != are only permitted when comparing a value of a type supplied to a generic type to null....
1
by: rasmidas | last post by:
Hi, Could anyone please let me know what does it mean by the following statement in solaris shell scripting. $PROMPT " Select an option: " read ans db_option=${ans:=0} I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.