Skip to main content
deleted 130 characters in body
Source Link
  1. Download the cs50 from: http://mirror.cs50.net/library50/c/library50-c-5.zip
  2. Extract it. (You will get two files cs50.c and cs50.h)
  3. Now copy both the files to your default library folder. (which includes your stdio.h file)
  4. Now while writing your program use: #include < cs50.c >
  5. You can also copy the files to the folder containing your helloWorld.c file.
  6. You have to use: #include " cs50.c ".

OR =====================================================================>

  1. Open cs50.c and cs50.h files in text editor.
  2. In cs50.h, just below #include < stdlib.h > add #include < stdio.h > and #include < string.h > both on new line.
  3. 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.
  4. Now you can copy the file cs50.h to either your default library folder or to your current working folder.
  5. 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!!!

  1. Download the cs50 from: http://mirror.cs50.net/library50/c/library50-c-5.zip
  2. Extract it. (You will get two files cs50.c and cs50.h)
  3. Now copy both the files to your default library folder. (which includes your stdio.h file)
  4. Now while writing your program use: #include < cs50.c >
  5. You can also copy the files to the folder containing your helloWorld.c file.
  6. You have to use: #include " cs50.c ".

OR =====================================================================>

  1. Open cs50.c and cs50.h files in text editor.
  2. In cs50.h, just below #include < stdlib.h > add #include < stdio.h > and #include < string.h > both on new line.
  3. 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.
  4. Now you can copy the file cs50.h to either your default library folder or to your current working folder.
  5. 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!!!

  1. Download the cs50 from: http://mirror.cs50.net/library50/c/library50-c-5.zip
  2. Extract it. (You will get two files cs50.c and cs50.h)
  3. Now copy both the files to your default library folder. (which includes your stdio.h file)
  4. Now while writing your program use: #include < cs50.c >
  5. You can also copy the files to the folder containing your helloWorld.c file.
  6. You have to use: #include " cs50.c ".

OR =====================================================================>

  1. Open cs50.c and cs50.h files in text editor.
  2. In cs50.h, just below #include < stdlib.h > add #include < stdio.h > and #include < string.h > both on new line.
  3. 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.
  4. Now you can copy the file cs50.h to either your default library folder or to your current working folder.
  5. 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 ".
Post Undeleted by Faizan Rizvi
Post Deleted by Faizan Rizvi
Source Link

  1. Download the cs50 from: http://mirror.cs50.net/library50/c/library50-c-5.zip
  2. Extract it. (You will get two files cs50.c and cs50.h)
  3. Now copy both the files to your default library folder. (which includes your stdio.h file)
  4. Now while writing your program use: #include < cs50.c >
  5. You can also copy the files to the folder containing your helloWorld.c file.
  6. You have to use: #include " cs50.c ".

OR =====================================================================>

  1. Open cs50.c and cs50.h files in text editor.
  2. In cs50.h, just below #include < stdlib.h > add #include < stdio.h > and #include < string.h > both on new line.
  3. 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.
  4. Now you can copy the file cs50.h to either your default library folder or to your current working folder.
  5. 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!!!