Search:

Type: Posts; User: Sicilian

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    873

    heh ok i made stupid mistake of printing...

    heh ok i made stupid mistake of printing leaf->right instead of printing leaf->right->nstring *smacks self* so my insert works ok after testing now however print_btree function still prints this:
    ...
  2. Replies
    2
    Views
    873

    updated code

    ok here is the implementation file i have i changed things around.
    i don't know why this is not working however.

    #include <iostream.h>
    #include <stdio.h>
    #include <cstring>
    #include "btree.h"...
  3. Replies
    2
    Views
    873

    recursive calls

    if i want to recursivly print out a binary tree from lowest to highest order should i recursivly go to max first then work it to the lowest and end with a cout<<leaf->blah;

    i'm having a little...
  4. Thread: strcmpi()

    by Sicilian
    Replies
    4
    Views
    5,062

    strcmpi()

    ok i am building a binary tree of char strings and i am trying to use the strcmpi() function to compare strings.
    i have
    if(strmpi(string,leaf->nstring) < 0)
    so if the string is less than the...
  5. Replies
    1
    Views
    1,179

    ifstream::open ??

    ok if i read in a filename into a char string and then i want to open that file how would i do that???
    i can't figure it out :P
  6. Replies
    4
    Views
    1,184

    i changed to the syntax you showed me i think ...

    i changed to the syntax you showed me i think
    in_stream.read((char),sizeof(counter)); char counter; char=&buffer[x];
    however still when i do out_stream<<*char; it matches the file in the...
  7. Replies
    4
    Views
    1,184

    ok i just converted the program with that method...

    ok i just converted the program with that method however it is producing the same results heh.
    is in_stream.read((char*)buffer, sizeof(buffer)); different from
    in_stream.read((char),count); where...
  8. Replies
    4
    Views
    1,184

    in_stream.get(char) question

    ok i have a .bin file full of bytes, and i wrote a program to put the max product of 5 consecutive bytes in max. everything works good when i tested it however i reallized that its not reading...
  9. Replies
    4
    Views
    14,878

    cool it worked thanks =)

    cool it worked thanks =)
  10. Replies
    4
    Views
    14,878

    i'm not sure. what i have is 5 unsigned chars...

    i'm not sure. what i have is 5 unsigned chars which are read from a file. then (c1*c2*c3*c4*c5) is stored in the long double sum.
    then if sum>max; max=sum; (both are same type)

    ok what is...
  11. Replies
    4
    Views
    14,878

    unsigned double?

    i wrote a program that gets the product of 5 bytes and stores it
    into a long double however when the number gets large it stores
    a negative number which corrupts my data. Is there a way i can cast...
Results 1 to 11 of 11