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;...
Type: Posts; User: aquatorrent
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;...
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:
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>...
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 :)
...
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,...
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 ;)