Sasuke
When I print from solderingCurrent node it's printing only the last node
Tom
Please show me the complete code.
Sasuke
Sasuke
Sasuke
c option outputs soldering node which supposed to oputput first and second
Sasuke
and j output node from current which i call current node
Sasuke
Sasuke
these are the functions for c and j option(default)
Sasuke
Tom
I'm reading your code, plz wait a moment.
Sasuke
Sasuke
eveen category isnt soldering it still getting added to solderingCategory node
Tom
please paste the code after the case 'a'
Sasuke
There it is
Tom
Below to them
Sasuke
All other cases are empty here c
Sasuke
And here is default
Tom
if(masterHead==NULL) { masterHead=current; masterPrevious=current; } else ...
Tom
the masterPrevious presents the tail of the list, right?
Sasuke
Yup
Tom
It should be initialized with masterHead together.
Sasuke
It should be initialized with masterHead together.
Nope after all the cases There is a statement masterPrevious = current;
Sasuke
I forgot to show you that
Tom
👌
Sasuke
👌
I think problem is somewhere while allocating memory to solderingCurrent
Tom
could you send the code file to me? I want to do some debug
Tom
what?
Sasuke
Trying to boot it up again wait
Tom
Sasuke
Sasuke
Trying to make it work
Tom
😂
Sasuke
It's old shit
Sasuke
😂
Waiting booting linux
Tom
😁
I_Interface
Why is it here ???
I_Interface
/warn No photos here. Especially with no code !
klimi
😁
It could be considered as offtopic so I can warn you for that
manas
With most data structures supporting RAII, what's the point of using unique ptr?
manas
to provide RAII for pointers?)
I mean I don't get the usage of unique ptrs. If I have RAII data structures, wouldn't I use them instead of unique ptrs having dynamic allocation?
Whistleblower
Has anyone tried esp-mdf with esp32
Serhii
Can you give a simple example? 😅
std::vector<int> a{1, 2, 3, 4, 5, 6, 7}; auto p = std::make_unique<int>(5); https://en.cppreference.com/w/cpp/container https://en.cppreference.com/w/cpp/memory
Ashish
Guys give some stl for tree
Ashish
How to construct using stl in c++??
Ashish
*tree
I_Interface
How to construct using stl in c++??
#include <map> - tree with key/value #include <set> - tree only with values Wanna their realization ? Google for it. Microsoft has opened STL repository.
Ashish
Thanks😊
Anonymous
/report
Report liar. I did not violate group laws,
klimi
Laws, nice
Anonymous
😂
Anonymous
c'mon it's 2020, and people still can't use just a small button called prtsc
You want to stir controversy. Leave people alone There are admins here. Your use of Report is incorrect  For the purpose of disturbing admin, it will expose you to ban
Sasuke
Sasuke
after calling function my categoryHead variable is again revert to Null why?
I_Interface
I'm going to warn you for photo. Have you read the rules ?
Sasuke
Surge.rs
i actually like that photo because it also shows output alongside the code
Dima
wtf all these screenshots lol
Dima
at least screenshots gg
I_Interface
you should it should contain code right?
You can provide a code with pastebin.com or a short code in this chat with monospace style.
Surge.rs
ya next time now can you help me to debug>
It doesnt look like that function contains your error
Sasuke
It doesnt look like that function contains your error
Whats the issue it should alter the value of head
Surge.rs
Unless categoryHead is null
Sasuke
Unless categoryHead is null
there is a loop so first time is null but when function calls it changes the value of head like you can see in output and during 2nd call it should not be null because first call changged that
Surge.rs
I dont know what the loop looks like
Sasuke
Unless categoryHead is null
And am declaring category head to null at the begining of main so it's a local variable
Anonymous
Copy the code and place it on the site so that someone can fix the error