Hi could you help me? | Sololearn: Learn to code for FREE!

+2

Hi could you help me?

Could you tell me what do these headers do in c++ in easy way. Include <algoritm> Include <random> Include <chrono> Include <cstring>

1/17/2022 4:55:18 PM

hanie

5 Answers

New Answer

+2

Then these links may help you... Just don't read those to understand. No one can know or remember all those.. Know those when you need to use. A basic idea is enough initially, that's we can get by name of header itself. Just know which function helps for some task then search that function header in references... For ex, : if you works with string then <cstring> header provides you lot functions like, strcmp() string compares, strstr(), strrev().. If you want to work with dates, then chrono header provides you day, month, year, time,... <algorithm> will provide you sort() function, and other high-level functions rarely used.. (Idk much those) <random> provides you random function generations with constraints.. See here for details.. https://www.geeksforgeeks.org/c-magicians-stl-algorithms/amp/ https://www.geeksforgeeks.org/chrono-in-c/amp/ https://www.geeksforgeeks.org/commonly-used-string-functions-in-c-c-with-examples/amp/ https://www.geeksforgeeks.org/random-header-c-set-1generators/amp/

+4

You can find from here... https://en.cppreference.com/w/cpp/header

+1

Jayakrishna🇮🇳 thanks but it's a little hard for me to undrestand

+1

Jayakrishna🇮🇳 thanks thanks thanks♥︎♥︎♥︎

+1

You're welcome..