User forums > Using Code::Blocks

How to determine which header file a function is associated with?

(1/1)

neuronet:
Say I am using code with like 20 headers in it, and want to figure out which header file a given function goes with. Is there an easy way to do this in code::blocks? For instance, right click 'std::cout' and is there an option that will let me know that cout goes with <iostream>? This is helpful for me as when I write new functions, I need to know which header files to include but I do not have the standard library, and all its header files, memorized. Yet.

oBFusCATed:
Select -> right click -> Go to declaration then pray to work :)

neuronet:

--- Quote from: oBFusCATed on January 16, 2014, 10:25:00 pm ---Select -> right click -> Go to declaration then pray to work :)

--- End quote ---

Thanks that usually gives me something intelligible. :) I wish it would literally just tell me which declaration it is associated with in the file I am checking, rather than open some file with a name loosely associated (sometimes) with the header declaration I have used.  ::)

Navigation

[0] Message Index

Go to full version