User Tools

Site Tools


notes:cprog:fall2023:projects:dtr0

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
notes:cprog:fall2023:projects:dtr0 [2023/09/14 00:22] – [STORAGE: BITS AND BYTES] jmerri10notes:cprog:fall2023:projects:dtr0 [2023/09/14 02:05] (current) – [BUILD THE CODE] xcroft
Line 10: Line 10:
 On a different system, you can use "hg pull" and "hg update" to update your changes on different systems, allowing you to save and load your work on lab 46 or on your personal system. On a different system, you can use "hg pull" and "hg update" to update your changes on different systems, allowing you to save and load your work on lab 46 or on your personal system.
 =====BUILD THE CODE===== =====BUILD THE CODE=====
 +Can use https://learn.microsoft.com/en-us/cpp/c-language/cpp-integer-limits?view=msvc-170 to help you find the max and minimal for long/short signed/unsigned
  
 +Example 
 + value              = 0x7F;
 +    fprintf (stdout, "maximum value represented: %hhd\n", value);
 +    
 +    0x7F = 127 so the maximum value for a signed char would be 127
 =====RUN THE PROGRAM===== =====RUN THE PROGRAM=====
 You can do "make" to compile and if you get an error you can do "make debug" You can do "make" to compile and if you get an error you can do "make debug"
notes/cprog/fall2023/projects/dtr0.1694650957.txt.gz · Last modified: 2023/09/14 00:22 by jmerri10