Search:

Type: Posts; User: min2max

Search: Search took 0.02 seconds.

  1. Thread: Linked List

    by min2max
    Replies
    4
    Views
    1,936

    Wow thanks for your help, its compiling and...

    Wow thanks for your help, its compiling and taking out the character...the only problem I am having is that say I have the word telephone in my input.txt document it only takes out the first e and...
  2. Thread: Linked List

    by min2max
    Replies
    4
    Views
    1,936

    Linked List

    My program takes in an input file from the command line and converts the string from the file into a linked list and then depending on the command it will manipulate the string to either reverse the...
  3. Thread: Linked Lists

    by min2max
    Replies
    18
    Views
    3,875

    To be more specific, I will be reading in the...

    To be more specific, I will be reading in the word from an input file and then converting that string to a linked list so that I can manipulate the word according to the remaining commands in the...
  4. Thread: Linked Lists

    by min2max
    Replies
    18
    Views
    3,875

    Yes that is the way I would have to write it...

    Yes that is the way I would have to write it unfortunately
  5. Thread: Linked Lists

    by min2max
    Replies
    18
    Views
    3,875

    Linked Lists

    How would you put a word into a linked list so that the linked list contains each letter of that word...so for example if I want to put "cat" into the linked list I want it to be like this "c" "a"...
  6. Replies
    2
    Views
    1,113

    Help with Structure

    I need to dynamically create a new Memo structure to hold memoized fib #'s

    I have two structures



    typedef struct HugeInteger
    {
    //array to hold the digits of a huge integer
    int...
  7. Replies
    2
    Views
    1,429

    Please Help with Expanding an array

    I have the following struct array list...



    typedef struct ArrayList
    {
    char **array;

    //number of elements inside list
    int elements;
  8. Replies
    9
    Views
    2,003

    Wow thanks, that fixed it completely! Can't...

    Wow thanks, that fixed it completely! Can't believe I didn't catch that...Thank you guys!!!!
  9. Replies
    9
    Views
    2,003

    myList->maximum is the number of elements added...

    myList->maximum is the number of elements added to the list.......getSize returns the number of elements currently in the list

    my ArrayList is....



    typedef struct ArrayList
    {
    char **array;
  10. Replies
    9
    Views
    2,003

    So what your saying is that all the names might...

    So what your saying is that all the names might be stored in myList->array[0] ??

    the code for put() is the following




    char *put(ArrayList *myList, char *str){
  11. Replies
    9
    Views
    2,003

    Please help with function

    I have a function in main that gets the size of names from a list L1 and then puts the strings from L1 into another list L2, but backwards.



    for (i = getSize(L1) - 1; i >= 0; i--)
    ...
  12. Replies
    4
    Views
    2,528

    Ok so I ran the if statement and it says Can't...

    Ok so I ran the if statement and it says Can't open names.txt: No such directory or file...I am coding with codeblocks and using a macbook pro...I guess my file path needs to be set differently
  13. Replies
    4
    Views
    2,528

    im working in a project folder with two different...

    im working in a project folder with two different source files and one header file...

    in one of my main.c source files I have exactly this...




    #include <stdio.h>
    #include <string.h>...
  14. Replies
    4
    Views
    2,528

    Please help with struct program!

    I have been working on a program that reads in a txt file of 5 names and then creates an array list for them

    so far my code is ...



    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h
  15. Replies
    1
    Views
    1,360

    Help with struct code!

    I am writing a program that expands array list whenever they get too full

    so far i have this:




    #define DEFAULT 10
  16. Replies
    10
    Views
    4,750

    Yes this helped ! Thanks. When I said I was new...

    Yes this helped ! Thanks. When I said I was new to programming I meant I haven't done it in awhile so I needed to refresh on some things lol sorry if I didn't clarify that correctly.

    So I guess I...
  17. Replies
    10
    Views
    4,750

    Help with Struct and pointers

    I am new to programming and have a struct for an array list. I am having a hard time visualizing what this struct actually looks like if I were to map it out with pen and paper...If anyone could help...
Results 1 to 17 of 17