Search:

Type: Posts; User: marbia

Search: Search took 0.01 seconds.

  1. you could pass that kind of pointer with a...

    you could pass that kind of pointer with a struct, also. :)



    struct array {
    char *rows; //char stands for *type*
    char *columns;
    } Array
  2. Thread: Syntax Error

    by marbia
    Replies
    12
    Views
    1,319

    the function works fine, while looping. i...

    the function works fine, while looping.

    i don't really understand why the 'if' goes all the checks, over the '1', to the hell. :)
  3. Thread: Syntax Error

    by marbia
    Replies
    12
    Views
    1,319

    ok, man i was only asking what's going on; don't...

    ok, man i was only asking what's going on; don't know why your 'shrug'.

    i don't understand, however, why the 'if' construct doesn't work properly. he makes his job nicely only for the input=1. on...
  4. Thread: Syntax Error

    by marbia
    Replies
    12
    Views
    1,319

    does it mean i have to change the structure of...

    does it mean i have to change the structure of this code?

    i'm not asking someone will do a job for me, absolutely.
    i've checked the code, seems to be ok, check for the '1' is ok and the return is...
  5. Thread: Syntax Error

    by marbia
    Replies
    12
    Views
    1,319

    sure it should work as in this case; input...

    sure

    it should work as in this case;

    input 10.

    10 is even then 10/2 = 5 (step=1)
    5 is odd then 5*3+1 = 16 (step=2)
    16 is even then 16/2=8 (step=3)
    8 is even then 8/2=4 ...
  6. Thread: Syntax Error

    by marbia
    Replies
    12
    Views
    1,319

    thanks for the input :) something strange is...

    thanks for the input :)

    something strange is happening.

    compile: ok

    the function assigns always 1 thou, whatever is the input.

    here's an example;
  7. Thread: Syntax Error

    by marbia
    Replies
    12
    Views
    1,319

    Syntax Error

    I think a silly syntax error then; i post the code..



    #include <stdio.h>
    #include <stdlib.h>

    main()

    { int n;
  8. Replies
    3
    Views
    1,022

    My first post here.. :) you should make...

    My first post here.. :)
    you should make assignments after the right declarations, it works fine for me. hope this helps.
Results 1 to 8 of 8