Intro to C
  • Introduction to Programming in C
  • Session 1
    • session1.c
  • Session 2
    • session2.c
  • Session 3
    • session3.c
    • veggies.c
  • Session 4
    • session4.c
  • Session 5
    • session5.c
    • session5p.c
  • Session 6
    • session6.c
    • session6p.c
  • Session 7
    • session7.c
    • session7p.c
    • tictactoe.c
  • Session 8
    • session8.c
    • session8p.c
  • Session 9
    • session9.c
    • session9p.c
    • data3.txt
    • problem4.txt
    • problem5.txt
    • problem6.txt
    • hello.txt
    • sentences.txt
    • people.csv
    • students.csv
    • powerball.csv
  • Session 10
    • session10.c
    • Linked List Code
    • Double Linked List Code
Powered by GitBook
On this page
  1. Session 10

session10.c

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>

// Example 1 Function Definition


// Example 2 Function Definition


/*** Beginnning of Linked List Code *****/


/*** End of Linked List Code *****/


/*** Beginnning of Doubly Linked List Code *****/


/*** End of Doubly Linked List Code *****/

// Main Function
int main()
{
    printf("Session 8\n");
    int choice;
    do
    {
        // Menu
        printf("Menu\n");
        printf("1 - Example 1\n");
        printf("2 - Example 2\n");
        printf("-1 - Quit\n");
        // get choice from user
        printf("Choice: ");
        scanf("%d", &choice);
        // switch choices
        switch (choice)
        {
            case 1:
                
                break;
            case 2:
                
                break;
            case 3:
                
                break;
            case 4:
                
                break;
        }
    }
    while (choice != -1);
}
Previouspowerball.csvNextLinked List Code

Last updated 1 year ago