![]() |
|
what does cout stand for |
Bradley Bergeron
Member #1,102
March 2001
|
Hey, was asked this today, what does cout stand for? it's a toss-up between console output and character output Thanks |
Radagar
Member #2,768
September 2002
![]() |
i vote console, but I'm not sure. ------------ |
Steve Terry
Member #1,989
March 2002
![]() |
Most likely console output, since most programs existed in console mode back in the days. Another one... what does the "f" stand for in printf, I would guess "file" but printf doesn't go to a file, it goes to stdout.. of course stdout is a file stream... but still. Ooh or what about argc, I mean you could name it whatever you want.. but that's the standard convention... ___________________________________ |
mEmO
Member #1,124
March 2001
![]() |
print formated --------------------------------------------- |
23yrold3yrold
Member #1,134
March 2001
![]() |
Quote: Ooh or what about argc, I mean you could name it whatever you want.. but that's the standard convention... I'm guessing argc is argument count, and argv is argument variables ... -- |
Steve Terry
Member #1,989
March 2002
![]() |
Good point... hmm I always thought it was argument vector, but argument count makes sense. ___________________________________ |
Chris Katko
Member #1,881
January 2002
![]() |
Quote: hmm I always thought it was argument vector, That's what I've heard. -----sig: |
Bradley Bergeron
Member #1,102
March 2001
|
any more comments on cout?? |
gillius
Member #119
April 2000
|
I would say console output, but cout is a character stream. For an argument for "character out" there exist classes wout and win which are for wchar_t (wide characters, usually unicode). W here certainly doesn't stand for console, it stands for the "wide" in "wide character", so you could say wout is "wide character output" and then by extension make an argument for cout to be "character out". Gillius |
Plucky
Member #1,346
May 2001
![]() |
'argc' and 'argv' were first used by Kernighan and Ritchie in their seminal work "The C Programming Language", published in 1978. I don't recall the concept "vector" in C programming back then, until the development of C++ 5 years later. |
Radagar
Member #2,768
September 2002
![]() |
i thought they were like Argument Count and ------------ |
mEmO
Member #1,124
March 2001
![]() |
dictionary.com said: A quantity, such as velocity, completely specified by a magnitude and a direction. So I guess it's vector, then --------------------------------------------- |
kazzmir
Member #1,786
December 2001
![]() |
The C programming language Second Addition said: The first (conventionally called argc, for argument count) is the number of command-line arguments the program was invoked with; the second (argv, for argument vector) is a pointer to an array of character strings that contain the arguments, one per string. So its argument count and argument vector. Case closed. |
CGamesPlay
Member #2,559
July 2002
![]() |
Print format, I think not formatted, as most function that end in f take a format string, and my definition of format is better than yours.... Or soemthing. But the real question is, "how do you get the value from an MFC CString into a const char* function? As in,void foo(const char*); too fast(too furious) { CString s; foo(s.whatGoesHere() ? thanks() : !dang_you()); }Sorry for the deranged code." -- Ryan Patterson - <http://cgamesplay.com/> |
Billybob
Member #3,136
January 2003
|
CGamesPlay, an MFC CString will automatically convert into a const char *.
|
CGamesPlay
Member #2,559
July 2002
![]() |
omg. I was thinking it would, but I didn't see the operator on the MSDN page, and the ==, !=, <, =, etc were, so I guess I thought it wouldn't work. Can't believe I didn't try it. Thanks. -- Ryan Patterson - <http://cgamesplay.com/> |
A J
Member #3,025
December 2002
![]() |
cout. (c)lever (o)mnivoures (u)se (t)ools. ___________________________ |
Joel Pettersson
Member #4,187
January 2004
|
I thought cout was short for c output, and cin short for c input.
|
23yrold3yrold
Member #1,134
March 2001
![]() |
But cout isn't C. It's C++. I would have voted for "character output". -- |
Billybob
Member #3,136
January 2003
|
or it's I always begin my class names with C, like CMouse.
|
23yrold3yrold
Member #1,134
March 2001
![]() |
But they aren't classes. They're objects. -- |
Matthew Leverton
Supreme Loser
January 1999
![]() |
They're just dumb, meaningless names. Luckly, out sorta means out, and in sorta means in. And the C, well, that is just a short cut for "see." cin // Let's see what comes in! Case closed! (But, you may see it on a poll some day...) |
|