Search:

Type: Posts; User: bob432

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    3,206

    Doubly Linked List Multiple Nodes

    I have an assignment in a programming class where we are traversing directory paths. I have two structs, one for Nodes and another for the List itself as such:

    struct Node
    {
    int level;
    int...
  2. Replies
    5
    Views
    2,763

    When doing this, I no longer receive a random...

    When doing this, I no longer receive a random generated number it always outputs the same number.

    And the dice is not always 12 sided, the user gets to choose how many sides the dice will have.
  3. Replies
    5
    Views
    2,763

    Honestly I have no idea, it is a group project...

    Honestly I have no idea, it is a group project and we cant seem to figure out sprintf for the dieResult. We could probably consolidate it into a single block but we just wanted to get it working...
  4. Replies
    5
    Views
    2,763

    Convert String type to Integer type

    Working on a project and I have hit a wall. I created a RNG for a microcontroller where users can choose the upper limit of the RNG, so it would pick a number between 1 and upper limit. However, I am...
  5. Replies
    1
    Views
    2,638

    Comparison between pointer and integer

    I am running into an error that states:
    warning: comparison between pointer and integer
    230 | while (currentWord != NULL && wordCountChoice > currentWord->count)


    When running this code:...
  6. Thread: Word Counting

    by bob432
    Replies
    10
    Views
    5,308

    Apologies, I didn't include the entire...

    Apologies, I didn't include the entire instruction document as its 5 pages of information and it seemed crazy to include the entire document. It was stated in class that any differences in words...
  7. Thread: Word Counting

    by bob432
    Replies
    10
    Views
    5,308

    Sorry for no replies about my created topic I...

    Sorry for no replies about my created topic I thought I would get email updates on when someone else replied.

    I have made a lot of progress on this program. And yes each word weather it be "The"...
  8. Thread: Word Counting

    by bob432
    Replies
    10
    Views
    5,308

    Word Counting

    I have been tasked with the following prompt for a coding project:

    Write a C program in Linux that will read two input files, identify frequent common words that appear
    in both files if their...
  9. Replies
    3
    Views
    4,746

    Here is an image of the errors I receive when I...

    Here is an image of the errors I receive when I attempt to run the program. As for IsFull, I cannot remove it as it is required to be in the program, even though it does make sense to omit and let it...
  10. Replies
    3
    Views
    4,746

    Sorted Linked Lists

    I have been tasked to update code provided to me to what in class is called the "Ultimate Linked List". I am having some issues with removing errors in the code after adding what I think is necessary...
  11. Replies
    4
    Views
    7,904

    In a way yes that is correct but as far as I...

    In a way yes that is correct but as far as I understand from the professor I am just responsible for creating a class function that if supplied with the necessary main function would run correctly....
  12. Replies
    4
    Views
    7,904

    Arrays, Linked Lists and Unordered Lists

    Note: This is part of an assignment for a course I am currently enrolled in.

    I'm in a C++ programming class and part of my assignment is to write a class function "CopyEarlyList" for AUList...
  13. Replies
    10
    Views
    4,162

    Thank you very much for your assistance I got the...

    Thank you very much for your assistance I got the program to work as intended. Here is an output example:
    15899
  14. Replies
    10
    Views
    4,162

    So I've tried adding your code into mine and...

    So I've tried adding your code into mine and added

    return (game.comp1Score, game.comp2Score);
    to the end of playgame() but now I get [Error] expected primary-expression before 'int' Line 745....
  15. Replies
    10
    Views
    4,162

    3x3x3 Tic Tac Toe

    This is an assignment in a programming class I am currently in. In a previous assignment we were required to program a 3x3x3 TTT board where you it was player vs computer for a single game. The...
  16. Thread: 3D Tic Tac Toe

    by bob432
    Replies
    2
    Views
    8,736

    Yeah that was all that was stopping it from...

    Yeah that was all that was stopping it from working. Found it after looking over the code for about an hour. Compiler never gave that warning, but it does give errors.
  17. Thread: 3D Tic Tac Toe

    by bob432
    Replies
    2
    Views
    8,736

    3D Tic Tac Toe

    I've written a program so that a user may play against the computer in 3D tic tac toe. However, the computer never takes its turn, and the user can just continue to place marks indefinitely. I have...
  18. Replies
    1
    Views
    6,125

    Error help '=fpermissive'

    I am writing a 3D tic tac toe program and have run into several errors. The first is:
    [Error] name lookup of 'z' changed for ISO 'for' scoping [-fpermissive]
    [Note] (if you use '-fpermissive' G++...
  19. Replies
    3
    Views
    4,883

    So I tried swapping what you provided with what I...

    So I tried swapping what you provided with what I already had and it didn't seem to do anything to help. In fact I couldn't get it to work at all. I'm not entirely sure what it is supposed to do or...
  20. Replies
    3
    Views
    4,883

    Consolidate multiple strings to a single one

    I'm fairly new to the C Programming language but am currently taking a course on it. One of the projects is to write a phonebook/contacts list. All of my phonebook works except for listing contacts...
Results 1 to 20 of 20