Search:

Type: Posts; User: Tubs

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    15,452

    Median of three quicksort

    void median_qsort( int a[], int p, int q, int piv ) /*to sort the subarray */
    { /* a[p:q] of array A into ascending order */
    int i, j;

    if( p < q )
    {
    /*...
  2. Thread: Reading problem

    by Tubs
    Replies
    6
    Views
    1,495

    Thanks. printf. I fixed it.

    Thanks. printf. I fixed it.
  3. Thread: Reading problem

    by Tubs
    Replies
    6
    Views
    1,495

    New problem, this one is kinda crazy. The program...

    New problem, this one is kinda crazy. The program reads correctly up to the value G, then letters start getting mixed up.



    #include "bst_inter.h"

    void bst_letter_fill ( tree_t *T )
    {
    ...
  4. Thread: Reading problem

    by Tubs
    Replies
    6
    Views
    1,495

    Thanks for pointing out the semi-colon, it loads...

    Thanks for pointing out the semi-colon, it loads now :)
  5. Thread: Reading problem

    by Tubs
    Replies
    6
    Views
    1,495

    Reading problem

    #include "bst_inter.h"

    void bst_letter_fill ( tree_t *T )
    {
    FILE *in;
    char read;
    bst_item data;
    int check;

    in = fopen("fill.txt", "r");
Results 1 to 5 of 5