User forums > Using Code::Blocks

How to explore library

(1/2) > >>

AZ:
Hello,
 how do i explore library? is there a way to open a library code in CB or i have to find the files on OS level and just "more" them ?

in other words, i used to be able to "right click " on the name of the library and it would load it into IDE ( Borland Delphi). Does the functionality like this exists in CB/C++ world ?

oBFusCATed:
What do you mean by library?

p.s. to answer you question either use the file manager plugin or create an empty project and add all library files in this project

AZ:

--- Quote from: oBFusCATed on April 15, 2016, 09:04:34 pm ---What do you mean by library?

p.s. to answer you question either use the file manager plugin or create an empty project and add all library files in this project

--- End quote ---
Example:

--- Code: ---#include <iostream>
#include <string>

using namespace std ;
int main()
     {

    cout << "Please enter your name:";
    std::string name;
    std::cin >> name ;
    string greeting = "Hello world, my name is " + name + "!" ;
    std::cout << greeting << std::endl ;
    const string spaces(greeting.size(),' ');
    const string out_ = '*' + spaces + '*';

    std::cout << out_ << std::endl;

    return 0;

}

--- End code ---
so what i want to find out is what the <string> "library" provides - what datatypes, functions etc.

BlueHazzard:
i don't know any offline documentation of c++. And c::B also does not provide such a feature (at least what i know. there is a help plugin, but i really don't know what it does)
If you use a external library you can try the "right click->got to deceleration". If the library implements a doxygen documentation you can read it in the header. Also there should pop up reference window on code completion (but the library has to provide it. The std does not)
If you need a cpp reference you can look at this two sites:
http://www.cplusplus.com/reference/
http://en.cppreference.com/w/

greetings

AZ:

--- Quote from: BlueHazzard on April 15, 2016, 09:56:48 pm ---i don't know any offline documentation of c++. And c::B also does not provide such a feature (at least what i know. there is a help plugin, but i really don't know what it does)
If you use a external library you can try the "right click->got to deceleration". If the library implements a doxygen documentation you can read it in the header. Also there should pop up reference window on code completion (but the library has to provide it. The std does not)
If you need a cpp reference you can look at this two sites:
http://www.cplusplus.com/reference/
http://en.cppreference.com/w/

greetings

--- End quote ---

thank you !

Navigation

[0] Message Index

[#] Next page

Go to full version