Hi could you help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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>

17th Jan 2022, 4:55 PM
hanie
hanie - avatar
5 Answers
+ 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/
17th Jan 2022, 5:45 PM
Jayakrishna 🇮🇳
+ 4
17th Jan 2022, 5:00 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 thanks but it's a little hard for me to undrestand
17th Jan 2022, 5:19 PM
hanie
hanie - avatar
+ 1
Jayakrishna🇮🇳 thanks thanks thanks♥︎♥︎♥︎
17th Jan 2022, 7:20 PM
hanie
hanie - avatar
+ 1
You're welcome..
17th Jan 2022, 8:05 PM
Jayakrishna 🇮🇳