Author Topic: How to determine which header file a function is associated with?  (Read 3672 times)

Offline neuronet

  • Single posting newcomer
  • *
  • Posts: 4
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.
« Last Edit: January 16, 2014, 10:41:47 pm by neuronet »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: How to determine which header file a function is associated with?
« Reply #1 on: January 16, 2014, 10:25:00 pm »
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!]

Offline neuronet

  • Single posting newcomer
  • *
  • Posts: 4
Re: How to determine which header file a function is associated with?
« Reply #2 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.  ::)