User Tools

Site Tools


journal:spring2020:esamson:week13

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2020:esamson:week13 [2020/04/29 21:30]
esamson
journal:spring2020:esamson:week13 [2020/04/29 21:43] (current)
esamson
Line 4: Line 4:
  
 This project really made me fully understand counting and while loops This project really made me fully understand counting and while loops
-51     //​Scans the journal -1 -2// +
- ​52 ​    int i = 0; +
- ​53 ​    ​while(fscanf(gf,"​%lld",​ &​uncutfile)!= EOF) +
- ​54 ​    { +
- ​55 ​        ​if(uncutfile != -2) +
- ​56 ​        { +
- ​57 ​            ​if(uncutfile != -1) +
- ​58 ​            { +
- ​59 ​                //​fprintf(stdout,"​%lld",​ uncutfile);​test +
- ​60 ​                ​jarray[i] = uncutfile;​ +
- ​61 ​            } +
- ​62 ​        } +
- ​63 ​        ​if(uncutfile == -2) +
- ​64 ​        { +
- ​65 ​            ​break;​ +
- ​66 ​        } +
- ​67 ​        i = i + 1; +
- ​68 ​    } +
- ​69 ​    //​Counts the total numbers in jtotal// +
- ​70 ​    ​jtotal = i;+
 This section allows us to count and see how much projects there are and total points. This section allows us to count and see how much projects there are and total points.
 +My comments and code were specifically placed and actually works to show what grade we have.
 +This gfo0 for C was a lot easier for me due to the fact that it allowed for more and made it really a blast to code. I especially loved the fact that I made a while if if if statement that looped through counting and it was a complete blast because the math portion was a new learning experience.
 =====unix week13===== =====unix week13=====
 ---- ----
 ====April 29, 2020==== ====April 29, 2020====
  
-In gtfo0 I decided to use a decent amount of tempfiles and used a god tier amount of egreps.+In gtfo0 I decided to use a decent amount of tempfiles and used a god tier amount of egreps. Egrep was the best way to get this done. I typed and typed just to complete my project, just to realize it did not work so I have to hand it in late the next day rip 25%. But I would rather hand in a project that I was proud of than a project that was a mess and had to waste matts time jus tfor him to read that I made a loop that was just terrible.
  
journal/spring2020/esamson/week13.txt · Last modified: 2020/04/29 21:43 by esamson