Search:

Type: Posts; User: casper7

Search: Search took 0.01 seconds.

  1. Thread: Recursion

    by casper7
    Replies
    19
    Views
    3,896

    thank you for all of your replies. 1. I am...

    thank you for all of your replies.

    1. I am allowed to use static variables (i find it easier as well).
    2. i know how to solve this problem in an iterative way. the probs show up
    when i try to...
  2. Thread: Recursion

    by casper7
    Replies
    19
    Views
    3,896

    what i did is: int intersect(const int...

    what i did is:



    int intersect(const int arr1[],const int arr2[], int size1,int size2)
    {
    int static i,j,count;

    if (i==size1){
    i=0;
  3. Thread: Recursion

    by casper7
    Replies
    19
    Views
    3,896

    thank you i don't know how qsort works ( i...

    thank you

    i don't know how qsort works ( i looked all over the net);
    any tips on how to write it on my own?

    and the only library i'm allowed to use is <stdio.h>;

    thanks again
  4. Thread: Recursion

    by casper7
    Replies
    19
    Views
    3,896

    i think that i do

    i think that i do
  5. Thread: Recursion

    by casper7
    Replies
    19
    Views
    3,896

    Recursion

    Hello everyone.

    i got some homework i have no idea how to solve.
    so, if you can help me out a bit, that would be great.
    i'm not asking you to solve it for me, of course.

    ** No loops or...
  6. Thread: grid counting

    by casper7
    Replies
    2
    Views
    2,107

    grid counting

    hello
    i'm writing the code for "The Game of Life".
    i'll explain, i get grid dimensions from the user, and in every cell there's either
    '-','R' or 'G'.
    now i need to go threw the grid and count...
  7. Replies
    16
    Views
    2,257

    thank you

    unfortuantley, it's an assigment for Uni., so i don't decide what i can use,
    but never mind, i managed to do it anyways.... thank you for your help.
  8. Replies
    16
    Views
    2,257

    i'm not allowed

    i'm not allowed to use:
    pointers, functions, etc.
    i can use strlen,strcpy,strcmp
  9. Replies
    16
    Views
    2,257

    converting string to integers

    Hello
    i'm trying to build this bit of code:
    i get an input (for example: "1 2 45 4 67 3") as string
    and i need to put these numbers into an array,
    if you can help me out, i'll be grateful.
    thank...
Results 1 to 9 of 9