Yeah but even doin like this the error remains the same
node* insert (node* p_tree, int key)
{
if (p_tree == NULL)
{
node* p_new_node = new node;
p_new_node->key =...
Type: Posts; User: gdz98
Yeah but even doin like this the error remains the same
node* insert (node* p_tree, int key)
{
if (p_tree == NULL)
{
node* p_new_node = new node;
p_new_node->key =...
Hi guys I m going trough the Jumping into C++ book and im currently on the binary tree chapter. There s an exercise that tells me to write a code where I can add values to a binary tree list and then...
As if I said nothing guys :D I eventually managed to do it and now it works as I expected... this is my code:
#include <iostream>
#include <string>
using namespace std;
struct Group
{
...
sorry guys I ve just fixed a couple of silly staff
#include <iostream>
#include <string>
using namespace std;
struct Group
{
int age;
string name;
Ok yeah you are right... I ve tried to change approach as well as I reviewed a few things about pointers which I didn t get very well, now my code looks like this:
#include <iostream>
#include...
I ve followed your advices, but still nothing. I thought that It may have been because i had set head and p_current as global variables so I moved them into my main function to make sure they were...
'cause I still know nothing about "list"... my book hasn t covered that topic yet, so I m supposed to do this exercise with what I learnt so far. Furthermore this chapter was about linked lists using...
you are damn right … that was really silly :D. Thanks a lot, but now I ve probably an even sillier problem but I m really stuck there... once I press 1 the program instead of printing out all the...
Hi guys I m practicing with this problem :
"Write a program to remove an element from a linked list; the remove function should take just the element to be removed."
I m trying to do it personal....
Thanks a lot, i just didnt get wht setw(2) mean (you ve written it at the 20th and 22nd line)… I ve probably not arrived so far in my book yet. could you explain me what it is please? :)
Hi guys I m trying to do a couple of functions which enable to get a board of a certain width and length. Once the user choose how much broad the board will be, I want to make appear on each empty...