- Download the cs50 from: http://mirror.cs50.net/library50/c/library50-c-5.zip
- Extract it. (You will get two files cs50.c and cs50.h)
- Now copy both the files to your default library folder. (which includes your stdio.h file)
- Now while writing your program use: #include < cs50.c >
- You can also copy the files to the folder containing your helloWorld.c file.
- You have to use: #include " cs50.c ".
OR =====================================================================>
- Open cs50.c and cs50.h files in text editor.
- In cs50.h, just below #include < stdlib.h > add #include < stdio.h > and #include < string.h > both on new line.
- Now open cs50.c file, copy everything (from: /**Reads a line of text from standard input and returns the equivalent {from line 47 to last}) and paste it in cs50.h just above the #endif and save the files.
- Now you can copy the file cs50.h to either your default library folder or to your current working folder.
- If you copied the file to default folder then use: #include < cs50.h > and if you copied the files to current working folder then use: #include " cs50.h ".
If you need help you can ask me at [email protected] and if this worked please let me know by voting it.
All the Best!!!