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!
-
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.– BlauelfCommented 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.76Commented 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 TranCommented 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.76Commented Jun 15, 2017 at 6:28
Add a comment
|
1 Answer
To download and edit in the CS50.Io IDE
- create a new directory (file) its name is pset3
- move to new directory by writing cd pset3 in terminal ~/workspace/pset3/ now you inside pset3 folder
- write this command line wget https://github.com/cs50/problems/archive/find.zip to download zip file inside pset3 file
- write this command line unzip find.zip To unzip the file
- write this command line rm find.zip to remove zip file
- write this command line mv problems-find find to rename problems-find to find
- write this command line cd find to Enter inside find folder
- write this command line ls to show what is inside find folder
then replace every //TODO comment me by your explan