¿Qué es una librería estándar? / What is a std library? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

¿Qué es una librería estándar? / What is a std library?

Help, I'm new in this world

3rd Jan 2020, 1:49 AM
JOHNNIE MONDRAGÓN FUENTES
JOHNNIE MONDRAGÓN FUENTES - avatar
4 Answers
+ 2
Una librería contiene funciones y métodos que te dan la oportunidad de hacer mucha cosas sin que usted tenga que escribir algo. Es común que librerías contienen métodos y funciones que vas a repetir muchas veces. Por ejemplo la librería de matemática contiene funciones que pueden calcular el promedio de un grupo de números. usted sólo puede escribir una función que te del promedio de un grupo de números pero no lo tienes que hacer porque ya alguien lo hizo y lo puso en la librería de matemática.
3rd Jan 2020, 3:32 AM
Ivan
Ivan - avatar
+ 1
im really sorry if my spanish is a little broken. i speak it fluently, but i rarely write it. Libraries have different functions and methods inside them that allow you to do many different things. A std library or a standard library contains basic functions. To find all the contents of a library, search for the library name online.
3rd Jan 2020, 3:34 AM
Ivan
Ivan - avatar
+ 1
*Boom* Aclaratorio Mental, Muchísimas Gracias
3rd Jan 2020, 3:35 AM
JOHNNIE MONDRAGÓN FUENTES
JOHNNIE MONDRAGÓN FUENTES - avatar
0
Most of the time, standard libraries work on different plaftorm. They are useful when you need to work with the OS(networking, multithreading for example). For example in c++, to create threads (simply : a small program next to the main program) : you can call Window's functions but your program won't work under Unix systems; you can call Unix's functions but it won't work under Windows... So you call a standard library, existing for both Unix and Windows, so you just ask a thread, you don't have to check the OS !
10th Jan 2020, 9:41 AM
Maxime D
Maxime D - avatar