Header Files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Header Files

Is it possible to use a header file from an outside source in this app? I am currently taking the cs50 course and would like to be able to use the <cs50.h> header file to practice coding on my phone. Thank you for your help

22nd Oct 2020, 8:55 PM
CODECAT
CODECAT - avatar
3 Answers
+ 4
Including the complete library provided by the header all within your source.
24th Oct 2020, 2:37 AM
John Wells
John Wells - avatar
+ 3
Given the way your code is compiled, you have no method to place header files accessible to your source. Your code is compiled in a sandbox that is clonned just prior to your source being placed there. Your code is the only thing you have access to.
23rd Oct 2020, 2:25 AM
John Wells
John Wells - avatar
+ 1
Thank you for your reply. So if I did want the functions from that header file, I would have to rewrite the code for it in this app?
24th Oct 2020, 2:09 AM
CODECAT
CODECAT - avatar