GithubHelp home page GithubHelp logo

ivogeorg / c-2nd-lang-asst-02 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 14.0 4 KB

Second programming assignment for learning C as a second programming language. Linked-list extensions to practice working with pointers and data on the heap.

CMake 62.79% C 37.21%

c-2nd-lang-asst-02's Introduction

Programming assignment in C: Linked-List Xtensions

Second programming assignment for learning C as a second programming language.

Requirements

  1. C language. The assignment consists of writing a working program in the C programming language.

  2. Linked list. Use your code from the C pointer exercises assignment as a basis. It's assumed that you have a linked list of integers, that is, the data in each node is a single int. Then, choose ONE of the following extensions (difficulty level in square brackets):

    • [2] Doubly-linked list of integers with insert function

      Convert the singly-linked list into a doubly-linked list. The elements of a doubly-linked list are connected in both directions, so it can be traversed from the head toward the tail and from the tail toward the head. Modify the list_insert function to match.

    • [2] Delete for singly-linked list of integers

      Extend your singly-linked int list with a list_delete function, which deletes the first node which matches the data argument.

    • [3] Structure data base type with comparison function for structure type

      Create a singly- or doubly-linked list with a struct data type. Provide as an argument a node_compare function that works for this struct type the way the numerical comparison operators (<, <=, >=, >, ==, and !=) work for numeric primitive types. Provide a list_insert function that preserves the order of the list.

    • [4] Structure of strings data base type with comparison function

      Create a singly- or doubly-linked list with a struct data type. The struct should contain C-style strings. Provide as an argument a node_compare function that works for this struct type the way the numerical comparison operators (<, <=, >=, >, ==, and !=) work for numeric primitive types. Provide a list_insert function that preserves the order of the list.

  3. Github.

    1. Fork this repository.
    2. Clone the remote to your local development environment.
    3. Implement and ensure your program is working correctly.
    4. Commit your changes.
    5. Push your commits to the remote, to submit your assignment.
  4. Project description. You need to state which extension you picked and describe your implementation, in the provided section below.

Project description

Extension

Your choice here...

Implementation notes

Your description here. Code samples will be appreciated...

c-2nd-lang-asst-02's People

Contributors

ivogeorg avatar

Stargazers

 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.