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...
Type: Posts; User: bob432
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...
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.
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...
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...
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:...
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...
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"...
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...
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...
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...
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....
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...
Thank you very much for your assistance I got the program to work as intended. Here is an output example:
15899
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....
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...
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.
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...
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++...
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...
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...