Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: neuronet on January 16, 2014, 10:13:18 pm

Title: How to determine which header file a function is associated with?
Post by: neuronet on January 16, 2014, 10:13:18 pm
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.
Title: Re: How to determine which header file a function is associated with?
Post by: oBFusCATed on January 16, 2014, 10:25:00 pm
Select -> right click -> Go to declaration then pray to work :)
Title: Re: How to determine which header file a function is associated with?
Post by: neuronet on January 16, 2014, 11:19:04 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.  ::)