LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to find the source code of classes in c++ (https://www.linuxquestions.org/questions/programming-9/how-to-find-the-source-code-of-classes-in-c-4175415484/)

tushar_pandey 07-07-2012 09:04 PM

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> !

Snark1994 07-09-2012 06:14 AM

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.


All times are GMT -5. The time now is 01:06 PM.