Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-24-2006, 02:55 PM   #1
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
cin/cout part of c or just c++

is cin and cout part of c, or is it only for c++?
Old 02-24-2006, 03:09 PM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
I think its only for C++. I have never seen any C syntax that uses cin or cout. Anyway my programming skills are mainly in python with only a bit of C and C++ so I could be wrong.
Old 02-24-2006, 03:30 PM   #3
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49
It's part of the C++ iostream library. C has nothing like that.
Old 02-24-2006, 03:54 PM   #4
Registered: Nov 2001
Posts: 75

Rep: Reputation: 15
The c conventions are to use scanf and printf.
Old 02-25-2006, 06:54 PM   #5
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 42
Rationale: C doesn't allow operator overloading so there's no way to write a type that can print things in response to being <<'d.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can C++ I/O streams (cin, cout) work with ncurses 5.4? Darwish Programming 8 09-29-2005 03:10 PM
cout queues miguetoo Programming 4 03-17-2004 02:02 AM
cin.ignore Xiangbuilder Programming 4 10-08-2003 07:57 PM
C++ cout & cin dead ??? juby Programming 4 02-08-2003 09:05 AM
cin.getline adam_boz Programming 6 10-02-2002 08:57 AM

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration