LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-24-2006, 02:55 PM   #1
true_atlantis
Member
 
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
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 48
It's part of the C++ iostream library. C has nothing like that.
 
Old 02-24-2006, 03:54 PM   #4
Vagrant
Member
 
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
aluser
Member
 
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.
 
  


Reply


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 04:22 AM.

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