Libraries

How do you create a working library??
What must be inside it??

And how do you use getline?
A library is created as a program but it should be compiled as library.
In the library you should have extensions which could be used by different programs run time (Dynamic libraries) or compile time (Static libraries)

<string> getline:
1
2
string mystring;
getline ( an_istream_as_cin, mystring );
http://www.cplusplus.com/reference/string/getline.html

istream::getline:
1
2
char *Cstring;
an_istream_as_cin.getline(Cstring);
http://www.cplusplus.com/reference/iostream/istream/getline.html
Topic archived. No new replies allowed.