LinuxQuestions.org
Help answer threads with 0 replies.
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 07-07-2012, 09:04 PM   #1
tushar_pandey
Member
 
Registered: Jun 2012
Location: ghaziabad , delhi , india
Posts: 105

Rep: Reputation: Disabled
How to find the source code of classes in c++


in c++ , i am using classes but the problem is , that how to find that which class is extended by another class .

example ..... how to find , that which classes are extended by <iostream>

and , why bool boolalpha is added in <ios> !
 
Old 07-09-2012, 06:14 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Do you mean, how do I find which of the source files #include <iostream> (for example)? Unless I misunderstand you, classes are not extended by other classes (well, not in the way you suggest by the example '<iostream>'), you use the #include directive at the start of the file. In which case

Code:
grep '#include <iostream>' * -ir
should give you the files which include iostream, if you run it in the project's root directory.
 
  


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
Where in the source code do I find the source for the Cisco FCoE HBA Drvr? madcowtricks Slackware 6 01-27-2011 03:00 PM
[SOLVED] why I couldn't find the source code of printf function in glibc source? famsinyi Programming 5 09-21-2009 09:06 AM
how to find mv's source code? meili100 Programming 5 02-27-2008 11:21 PM
how to find mv's source code? iclinux Programming 2 02-16-2005 09:17 PM
Where can i find source code rajaryan Linux - Newbie 2 03-27-2003 06:50 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration