0
How to include cs50.h
I just started my cs50.h class, I have not former idea of what even code is so I think I may not make sense of what I am asking. So please bear with me. When I tried to #include <cs50.h> it shows a error of file not found is shown. So, can some please explain how to add <cs50.h> Or , an alternative method where I can use the function of cs50.h library, in Android. So if anyone can help please explain..but please explain as you are explaining a 5 years old. A step by step method is really appreciate
4 Answers
+ 2
If you want to use this in the Sololearn playground, then no, it's not possible. You can only use libraries which have been installed on the system where the code is running. The Sololearn playground is executed on the servers of Sololearn and not on your phone. They have a preconfigured, constrained environment where you cannot install anything, only use what is provided.
If you want to use this library for development on your own machine, you need to follow the installation instructions and compile your code with specific flag as explained here:
https://cs50.readthedocs.io/libraries/cs50/c/
+ 2
There is a Linux terminal emulator called Termux which runs on Android. It gives you a command line utility where you can install anything you want, including the C compiler and other development tools.
https://www.geeksforgeeks.org/how-to-install-termux-on-android/
But it is really an advanced level tool, using it requires some knowledge of Linux and to use it for writing C programs, you need to understand the compilation process and the tools needed for it.
+ 1
I haven't tried it but maybe
https://play.google.com/store/apps/details?id=name.antonsmirnov.android.cppdroid&hl=en
Although I sould recommend in investing in a laptop if you're serious about learning to code.
0
Thank you for your respond, I'm truly greatful.
Mr. Jay #include "cs50.h" didn't work but still thank you.
Tinor thank you for explaining it to me.. I understand it need to be downloaded first. For Pc.
But, is there any way cs.50 library function can be used in Android..be it sololearn or any other app