Code Monkey home page Code Monkey logo

ece160-hw03's Introduction

ece160-hw03

For this assignment, you will need to fork this respotiory (see the upper-right corner of this page). Once you have your own fork, clone it like you would with any other repository. Edit hw03.c to print the correct output, and then commit and push your changes to your fork.

The goal of this assignment is to create a struct that stores student data (it's already half way done for you!) and prints it different according to the specified Mode. The 4 fields your student struct should store are first_name, last_name, major, and year. These will be populated from argv. The program will be compiled and invoked as follows:

clang hw03.c -o hw03
./hw03 0 first_name1 last_name1 major1 year1 first_name2 last_name2 major2 year2 ...

Note that there could be an arbitrarily large number of students' data in argv.

Details about the implementations of the functions in hw03.c are in the comments.

Example input commands and their corresponding expected outputs are show in example_input.sh and example_output.txt respectively.

ece160-hw03's People

Contributors

cooper-ece160 avatar ecm223 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.