#Trying to get it my linked list to display when running.

34 messages · Page 1 of 1 (latest)

obtuse bough
#

So all my classes are connected and the list is kinda working but it (0,test, again and 54) won’t appear in the debugger and I tried to make a display for it and put it after to show(I don’t have it in this screenshot) but that didn’t work either. (I have included image showing what I am saying as I am no good at typing/explaining).

mental islandBOT
#

When your question is answered use !solved or the button below to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@obtuse bough

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

crimson axle
obtuse bough
# crimson axle sorry I realy don't get the issue / problem

So I am trying to get the (0, “test”, “again”, 54) above the “pick a list” that’s in the black box but in a linked list with multiple classes. Like it all works except it’s not showing my test of stuff for list.appendNode(pet(0, “test”, “again”, 54) )
Sorry if I am not good at explaining.

#

Like here is the version with the display forwards it’s all in main. But it’s still not showing.

hazy coyote
#

So you're saying your DoublyList::displayForward() function is not displaying the contents of the node of type Pet that you added via DoublyList::appendNode(T node)?

crimson axle
obtuse bough
# crimson axle I feel we are missing way to much context her, what is the functions supposed to...

Ya sorry I just was not sure what to send since this code uses 3 classes. The pet class, node class and the one that’s going to do the work/show the lists in main is dobblylist class.

(The green is the tutor trying to help me a few days ago and left me reminders notes.)
So the pet class and the node class are fine as it is just getters and setters basically. But what is shown in the screenshots is the dobblylist.cpp and those public classes are the ones showing in main rn. As I am trying to append a list and put the display forwards but it’s not showing the initial list in main (the black box with the (0, test, again, 54).

crimson axle
obtuse bough
obtuse bough
crimson axle
mental islandBOT
#
How to Format Code on Discord
Markup

```cpp
int main() {}
```

Result
int main() {}
obtuse bough
crimson axle
obtuse bough
crimson axle
obtuse bough
crimson axle
#

You are running in debug mode but are not actually using a debugger

obtuse bough
#

Tho I don’t think that’s going to help make the list.appendNode show in the black box above the pick a choice.

crimson axle
#

you should try formatting your questions in a bit of an:
Expected Output:
Actual Output:

obtuse bough
crimson axle
obtuse bough
# crimson axle what do you mean with? > Expected output is just the console itself screen shot

I am trying to get list.appendNode(pet(0,test,again,54) to get displayed

Because in the first screenshot for me to show you what I was talking about, I just put it in the cout statement and no i can’t put it in a statement like that for my hw. It’s meant to be in a linked list. (I am in a bit of a time crunch and stressed out a bit as it due the next day and it’s just this little bit that’s not working once I get working I can breeze through the rest of it and turn the homework in)

crimson axle
obtuse bough
crimson axle
#

1 block for each file

mental islandBOT
#
How to Format Code on Discord
Markup

```cpp
int main() {}
```

Result
int main() {}