Search:

Type: Posts; User: aquatorrent

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,928

    seems you have trouble in sorting :) a bubble...

    seems you have trouble in sorting :)
    a bubble sort should be like this:


    for (iteration = 0; iteration < length; iteration++)
    {
    for (index = 0; index < length - iteration-1;...
  2. Replies
    3
    Views
    1,088

    lol, i forget about the reference thing :P...

    lol, i forget about the reference thing :P
    anyway, i make my root global in case i need it later.
    should it be declared on main? i tried to make it on global and it also works :confused:
  3. Replies
    3
    Views
    1,088

    Problems with binary tree

    i tried to make a binary tree, but when i print it, it shows nothing.
    can someone help me? here's the code:



    #include<iostream>
    #include<Windows.h>
    #include<string>
    #include<fstream>...
  4. Replies
    4
    Views
    898

    yep, i know. and that's why i'm asking this. i...

    yep, i know. and that's why i'm asking this. i must have done something wrong and thanks to you guys, i know what's wrong. i tested only with one 'cat' word so that's why i confused with this :)
    ...
  5. Replies
    4
    Views
    898

    searching help? (find function)

    sorry if this has been asked before, but i am confused about a code which is posted on the tutorial page:


    string input;
    int i = 0;
    int cat_appearances = 0;

    getline(cin,...
  6. you haven't give 'sum' a value. so when the first...

    you haven't give 'sum' a value. so when the first time 'sum' does a calculation for the 'list[7]', it won't work
    try assigning 'sum' a value ;)
Results 1 to 6 of 6