User Tools

Site Tools


haas:spring2020:cprog:projects:cci0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2020:cprog:projects:cci0 [2020/01/19 14:33] – [Personal/Per-User Lab46 Mercurial Repository] wedgehaas:spring2020:cprog:projects:cci0 [2020/01/19 14:45] (current) – [Personal/Per-User Lab46 Mercurial Repository] wedge
Line 89: Line 89:
 Like the Journal, I will be looking for a minimal amount of repository-related activity PER WEEK. Like the Journal, I will be looking for a minimal amount of repository-related activity PER WEEK.
  
-To set up your repository, run the "fixrepo" script.+To set up your repository, run the "fixrepo" script
 + 
 +<cli> 
 +lab46:~$ fixrepo 
 +</cli> 
 + 
 +For basic repository operation, when you make new files you'd like to track, or see the status of any tracked files that have changed: 
 + 
 +<cli> 
 +lab46:~$ cd src 
 +lab46:~/src$ hg status 
 +A .hgignore 
 +lab46:~/src$  
 +</cli> 
 + 
 +Once cloned (to your ~/src directory), you will be able to add, commit, and push changes made: 
 + 
 +<cli> 
 +lab46:~/src$ hg add 
 +lab46:~/src$ hg commit -m "brief message describing the changes" 
 +lab46:~/src$ hg push 
 +</cli> 
 + 
 +On the push, you will be prompted to provide your lab46 password. 
 + 
 +And that's it! Repeat this process (NOT the 'fixrepo'; only do that once) for any changes you make to your repository.
 ====Program to Implement==== ====Program to Implement====
 As a first week exercise, I would like you to implement, successfully compile, and verify correct execution of the best first program every great programmer writes: **Hello World** As a first week exercise, I would like you to implement, successfully compile, and verify correct execution of the best first program every great programmer writes: **Hello World**
Line 111: Line 136:
  
 Your task will be to transcribe this code (sans line numbers), into a source file (call it **hello.c** for simplicity), within some subdirectory of your lab46 account (**~/src/cprog/cci0/** may be a good choice). Your task will be to transcribe this code (sans line numbers), into a source file (call it **hello.c** for simplicity), within some subdirectory of your lab46 account (**~/src/cprog/cci0/** may be a good choice).
 +
 +<cli>
 +lab46:~$ mkdir src/cprog/cci0
 +lab46:~$ cd src/cprog/cci0
 +lab46:~/src/cprog/cci0$ 
 +</cli>
 +
 +You may want to use the **nano** text editor for this:
 +
 +<cli>
 +lab46:~/src/cprog/cci0$ nano hello.c
 +</cli>
 +
 +The **nano** text editor is a simple editor that provides basic functionality (commands listed at the bottom of the screen. You press the CONTROL key in combination with whatever letter invokes the desired functionality).
 +
 +To save the file: CTRL+o
 +
 +To save and exit (or exit if there are no changes made): CTRL+x
 +
 +Note that if there are any changes, you will be prompted whether or not you'd like to save them (the changes are in memory (aka the buffer), and nano will prompt if you'd like to save the modified buffer). You will then be prompted for the filename (filling in the current filename, if there is one). Just press enter to accept these changes.
  
 Verify you typed in everything correctly by compiling it; you want no warnings or errors: Verify you typed in everything correctly by compiling it; you want no warnings or errors:
Line 176: Line 221:
  
 <code> <code>
-39:cci0:final tally of results (39/39+13:cci0:final tally of results (13/13
-*:cci0:customized journal title [4/4] +*:cci0:customized journal (title and intro[1/1]
-*:cci0:customized journal intro [4/4] +
-*:cci0:subscribed to class mailing list [4/4]+
 *:cci0:joined class irc chat [1/1] *:cci0:joined class irc chat [1/1]
-*:cci0:submitted info.text file [1/1+*:cci0:submitted proper info.text file [1/1]
-*:cci0:provided requested information in info.text [4/4]+
 *:cci0:cloned lab46 mercurial repository into ~/src [1/1] *:cci0:cloned lab46 mercurial repository into ~/src [1/1]
-*:cci0:committed and pushed populated .hgignore file [3/3] 
-*:cci0:configured hgrc file [3/3] 
 *:cci0:submitted file called hello.c [1/1] *:cci0:submitted file called hello.c [1/1]
-*:cci0:committed and pushed hello.c to repository [2/2]+*:cci0:committed and pushed hello.c to repository [1/1]
 *:cci0:adequate and consistent indentation in hello.c [1/1] *:cci0:adequate and consistent indentation in hello.c [1/1]
 *:cci0:sufficient comments in hello.c [1/1] *:cci0:sufficient comments in hello.c [1/1]
-*:cci0:executable runs without issue [3/3+*:cci0:executable runs without issue [1/1
-*:cci0:output conforms to project specifications [3/3]+*:cci0:output conforms to project specifications [1/1]
 *:cci0:adequate modifications in hello.c [1/1] *:cci0:adequate modifications in hello.c [1/1]
 *:cci0:no compiler warnings for hello.c [1/1] *:cci0:no compiler warnings for hello.c [1/1]
haas/spring2020/cprog/projects/cci0.1579444405.txt.gz · Last modified: 2020/01/19 14:33 by wedge