0

In the "understanding" section of find/PSET3 in CS50 2017 how do I open the file generate.c so that I can make (TODO) comments in that. I have ran all the commands for "downloading" section which executes the generate.c file but I don't know how to open it so that I can replacing each TODO with a phrase that describes the purpose or functionality of the corresponding line(s) of code. Plse help!

4
  • Do you mean in the CS50.io IDE? Or on your local computer? You can edit source files with about any text editor that can write plaintext in (so notepad, vim, emacs, notepad++, sublime, nano, textmate, whatever, but please not word or wordpad). Or double-click the file in the cs50.io IDE, which should open the file in an editor tab.
    – Blauelf
    Commented Jun 14, 2017 at 12:09
  • I meant that though CS50.io IDE has successfully executed the command in the downloading section but then I am not getting any files in find directory of my workspace . Then, how I open generate.c or other files in find directory. Please help!
    – sk.76
    Commented Jun 14, 2017 at 12:50
  • shouldn't there be a folder named "find" in your directory? Or perharps you forgot to cd out to workspace folder and your "find" folder is somewhere in one of your folders?
    – Ha Tran
    Commented Jun 14, 2017 at 13:54
  • Though there is a folder named "find" there are no files (generate.c/find.c/helpers.c) even when I ran the commands for the downloading section in PSET3. I mean the programs do run but the files in that "download" section as they told are not there.
    – sk.76
    Commented Jun 15, 2017 at 6:28

1 Answer 1

0

To download and edit in the CS50.Io IDE

  1. create a new directory (file) its name is pset3
  2. move to new directory by writing cd pset3 in terminal ~/workspace/pset3/ now you inside pset3 folder
  3. write this command line wget https://github.com/cs50/problems/archive/find.zip to download zip file inside pset3 file
  4. write this command line unzip find.zip To unzip the file
  5. write this command line rm find.zip to remove zip file
  6. write this command line mv problems-find find to rename problems-find to find
  7. write this command line cd find to Enter inside find folder
  8. write this command line ls to show what is inside find folder

then replace every //TODO comment me by your explan

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .