News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

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

Started by neuronet, January 16, 2014, 10:13:18 PM

Previous topic - Next topic

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 :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

neuronet

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

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.  ::)