User Tools

Site Tools


Sidebar

projects

haas:spring2014:cprog:projects

This is an old revision of the document!


Table of Contents

Corning Community College

CSCS1320 C/C++ Programming

Assignments, Documents, Information, and Projects

Projects

Week 4

Week 3

  • Signed values
    • how to represent
    • how to manually encode
      • one's complement (why is this problematic?)
      • two's complement
        • invert, then add 1
    • what this does to the range
    • impact on resulting quantity
  • discuss next week's project: squares
    • input with scanf()
      • need to pass variables by address
      • formatted text string same as with printf()

Week 2

  • We covered some C programming details relating to the data types project:
    • printf/fprintf
      • STDIN/STDOUT/STDERR
      • format string specifiers
        • %d
        • %u
        • %ld
        • %lu
        • %hd
        • %hu
        • %hhd
        • %hhu
        • %c
        • %s
        • the space allocation/zero padding optional value that can be specified within the format string specifier
    • sizeof() function
      • relatedly:
      • low and high values within a fixed size range
      • roll-over
    • logical operators
    • type casting
  • We also looked at cloning BitBucket repositories onto Lab46

Week 1

  • Welcome! Be sure to:
    • Read over the syllabus
    • Subscribe to the class mailing list
    • Using the tutorial, set up a screen session and get on #csci on irc
  • Get familiar with logging into the pod systems, and once there:
    • opening up a terminal
    • logging that terminal onto Lab46 for class work and attendance
  • Get familiar with how to log onto Lab46, and once on:
    • change to your src/ subdirectory
    • create/edit .c files (such as hello.c), and how to save/exit
    • compile the C program (.c file(s)) into an executable with gcc
    • execute the compiled C program (the executable) by specifying a path: ./program_name
  • Familiarize yourself with your Opus, and once there:
    • customize it (title/subtitle)
    • add an introduction
    • create your first week content
  • Contemplate our first set of programs we're going to write:
haas/spring2014/cprog/projects.1392112619.txt.gz · Last modified: 2014/02/11 09:56 by wedge