User Tools

Site Tools


haas:fall2019:c4eng:projects:sof0

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:fall2019:c4eng:projects:sof0 [2019/08/25 21:02] wedgehaas:fall2019:c4eng:projects:sof0 [2019/08/27 14:03] (current) – [Submission] wedge
Line 120: Line 120:
  
 <cli> <cli>
-lab46:~/src/cprog/sof0$ ./sof0+lab46:~/src/c4eng/sof0$ ./sof0
 Enter value: 75 Enter value: 75
 75  x 75  =   5625 75  x 75  =   5625
-lab46:~/src/cprog/sof0$ +lab46:~/src/c4eng/sof0$ 
 </cli> </cli>
  
Line 133: Line 133:
  
 <cli> <cli>
-lab46:~/src/cprog/sof0$ ./sof0+lab46:~/src/c4eng/sof0$ ./sof0
 Enter value: 105 Enter value: 105
 105 x 105 =  11025 105 x 105 =  11025
-lab46:~/src/cprog/sof0$ +lab46:~/src/c4eng/sof0$ 
 </cli> </cli>
  
Line 144: Line 144:
  
 <cli> <cli>
-lab46:~/src/cprog/sof0$ ./sof0 2> /dev/null <<< 105+lab46:~/src/c4eng/sof0$ ./sof0 2> /dev/null <<< 105
  11025  11025
-lab46:~/src/cprog/sof0$ +lab46:~/src/c4eng/sof0$ 
 </cli> </cli>
  
Line 157: Line 157:
  
 <cli> <cli>
-lab46:~/src/cprog/sof0$ ./sof0 1> /dev/null+lab46:~/src/c4eng/sof0$ ./sof0 1> /dev/null
 Enter value: 75 Enter value: 75
-75  x 75  = lab46:~/src/cprog/sof0$ +75  x 75  = lab46:~/src/c4eng/sof0$ 
 </cli> </cli>
  
Line 176: Line 176:
  
 <cli> <cli>
-lab46:~/src/cprog/sof0$ pchk cprog sof0+lab46:~/src/c4eng/sof0$ pchk c4eng sof0
 </cli> </cli>
  
Line 183: Line 183:
 <cli> <cli>
 ================================================== ==================================================
-=   CPROG sof0 project output validation tool    =+=   C4ENG sof0 project output validation tool    =
 ================================================== ==================================================
 sof0 checksum is: 822a47fb2a45845500b6c10878045bd5 sof0 checksum is: 822a47fb2a45845500b6c10878045bd5
Line 196: Line 196:
 <cli> <cli>
 ================================================== ==================================================
-=   CPROG sof0 project output validation tool    =+=   C4ENG sof0 project output validation tool    =
 ================================================== ==================================================
 sof0 checksum is: 822a47fb2a45845500b6c10878045bd5 sof0 checksum is: 822a47fb2a45845500b6c10878045bd5
Line 219: Line 219:
  
 <cli> <cli>
-lab46:~/src/cprog/proj$ gcc -Wall --std=gnu99 -o hello hello.c +lab46:~/src/c4eng/proj$ gcc -Wall --std=gnu99 -o hello hello.c 
-lab46:~/src/cprog/proj$ +lab46:~/src/c4eng/proj$ 
 </cli> </cli>
  
Line 238: Line 238:
  
 <cli> <cli>
-lab46:~/src/cprog/proj$ ./hello+lab46:~/src/c4eng/proj$ ./hello
 Hello, World! Hello, World!
-lab46:~/src/cprog/proj$ +lab46:~/src/c4eng/proj$ 
 </cli> </cli>
  
Line 247: Line 247:
  
   * Code must compile cleanly (no warnings or errors)   * Code must compile cleanly (no warnings or errors)
-    * Use the **-Wall** and **--std=c99** flags when compiling.+    * Use the **-Wall** and **--std=gnu99** flags when compiling.
   * Executed program must display a total of 2 lines, one for input, one for output.   * Executed program must display a total of 2 lines, one for input, one for output.
     * The computed number must be output to STDOUT     * The computed number must be output to STDOUT
Line 267: Line 267:
  
 <cli> <cli>
-$ submit cprog sof0 sof0.c +$ submit c4eng sof0 sof0.c 
-Submitting cprog project "sof0":+Submitting c4eng project "sof0":
     -> sof0.c(OK)     -> sof0.c(OK)
  
haas/fall2019/c4eng/projects/sof0.1566766975.txt.gz · Last modified: 2019/08/25 21:02 by wedge