Search:

Type: Posts; User: eagerissac

Search: Search took 0.01 seconds.

  1. C - Reading and iterating through data from file to calculate totals

    I'm trying to implement a program that reads in data from a file called grad.dat. Each record (i.e. each line) in the data file gives statistics for a given country, year, degree, and gender, etc....
  2. C - Reading and iterating through data from file to calculate statistics

    I'm trying to implement a program that reads in data from a file called grad.dat. Each record (i.e. each line) in the data file gives statistics for a given country, year, degree, and gender, etc....
  3. Creating thread for every element in array using pthread_create()

    I'm writing a program that will simulate a randomized race between runners who are climbing up a mountain. I'm struggling with a part of my task where using the pthread_create() function, I am to...
  4. Function that takes in array of characters as parameter

    I'm writing a function that is supposed to add a Product object to an array of Products and also initialize the data members for each Product object. I'm running into an issue where I can't figure...
  5. Replies
    1
    Views
    4,889

    Add elements from linked list to array

    I'm new to C and am creating a program that initializes two different linked lists of books. The goal of the program will eventually merge the data from the two linked lists into a dynamically...
  6. Declaring head and tail for doubly linked list

    I'm new to C and creating a program that manages two different collection structures - an array structure and a doubly linked list. I'm creating functions that will manage these structures as well as...
  7. Replies
    2
    Views
    1,673

    C - freeing memory to avoid leak

    I have a program below that manages a library full of Books and when I test for memory leaks using valgrind and then enter 'CTRL+Z' to quit, it says there are hundreds of bytes lost. When the program...
  8. Replies
    1
    Views
    4,112

    C - functions not calling in while loop

    So I'm trying to use a while loop to repeat a menu of options for the user to select until they enter 0 to exit. The issue is when I attempt to put my separate my code into different files to make my...
  9. Hi so I basically made the following changes to...

    Hi so I basically made the following changes to my code but rather than a period I used an arrow for 'productCollection->products[i]->id = i' because the ProductType* products[MAX_UNITS] and...
  10. For addProduct() my attempt was to initialize the...

    For addProduct() my attempt was to initialize the product's id, price, etc. but for every different product that is added. I thought increasing the index meant the id/price/units and such would only...
  11. C - iterating numberOfProducts variable does not work

    I'm new to C and am creating an online store which manages a bunch of products in its inventory. I'm having trouble printing all my products out. When the user enters '1' which should iterate through...
Results 1 to 11 of 11