Search:

Type: Posts; User: gdz98

Search: Search took 0.00 seconds.

  1. Yeah but even doin like this the error remains...

    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 =...
  2. Jumping into C++ cha 17 number 1 (binary tree and sorting)

    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...
  3. Replies
    10
    Views
    5,427

    As if I said nothing guys :D I eventually managed...

    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
    {
    ...
  4. Replies
    10
    Views
    5,427

    sorry guys I ve just fixed a couple of silly...

    sorry guys I ve just fixed a couple of silly staff


    #include <iostream>
    #include <string>
    using namespace std;
    struct Group
    {
    int age;
    string name;
  5. Replies
    10
    Views
    5,427

    Ok yeah you are right... I ve tried to change...

    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...
  6. Replies
    10
    Views
    5,427

    I ve followed your advices, but still nothing. I...

    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...
  7. Replies
    10
    Views
    5,427

    'cause I still know nothing about "list"... my...

    '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...
  8. Replies
    10
    Views
    5,427

    you are damn right … that was really silly :D....

    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...
  9. Replies
    10
    Views
    5,427

    Deleting elements from a linked list

    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....
  10. Thanks a lot, i just didnt get wht setw(2) mean...

    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? :)
  11. Jumping into c++ chapter 14 problem 5 (Collect 4)

    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...
Results 1 to 11 of 12