2
Hello, when I learned C I did several libraries, since Heaps, binary trees, lists, queues...etc
I wonder if in C++ there are libraries that we can import to use more easily, as with libraries <string>
or <vector>
Ex:
#include <iostream>
#include <string>
using namespace std;
int main () {
string str1 = "Hello";
string str2 = "World";
string str3;
int len ;
// copy str1 into str3
str3 = str1;
cout << "str3 : " << str3 << endl;
// concatenates str1 and str2
str3 = str1 + str2;
cout << "str1 + str2 : " << str3 << endl;
// total length of str3 after concatenation
len = str3.size();
cout << "str3.size() : " << len << endl;
return 0;
}
How we import the library <string>
allowed it to be easier to manipulate strings.
So I was wondering if we could import how for example <heap>
and have the data structure ready to use
This type of question would result in an objective and short answer
– Sveen
I wonder if there are possible examples of how to apply...
– Fábio Morais