Search:

Type: Posts; User: unknownC

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Recursive

    by unknownC
    Replies
    13
    Views
    1,334

    I see. Thanks. Could you see if my code is right...

    I see. Thanks. Could you see if my code is right for recursive?
  2. Thread: Recursive

    by unknownC
    Replies
    13
    Views
    1,334

    main() { int n=0; increase(n); }

    main()
    {
    int n=0;

    increase(n);

    }
  3. Thread: Recursive

    by unknownC
    Replies
    13
    Views
    1,334

    I have edited it. Is it recursive now? :tongue: ...

    I have edited it. Is it recursive now? :tongue:



    main()
    {
    n=0;
    increase(n);
    }
  4. Thread: Recursive

    by unknownC
    Replies
    13
    Views
    1,334

    Recursive

    This recursive function is to display numbers from 0 to 10.

    Am I doing it as recursive?



    for(n=0;n<10;n++)
    {
    increase(n);
    printf("%d ",a);
  5. Replies
    3
    Views
    1,345

    Thanks! It works!

    Thanks! It works!
  6. Replies
    3
    Views
    1,345

    Char variable stack problem

    I encounter this issue: "Run-time Check Failure #2 - Stack around the variable 'choice' was corrupted."

    "choice" is a single character variable used in switch loop.

    Any solution?
  7. Replies
    8
    Views
    1,048

    After using your code, an error message appeared:...

    After using your code, an error message appeared: "a value of type "const char *" cannot be used to initialize an entity of type "char" ".
  8. Replies
    8
    Views
    1,048

    What about this? typedef struct { char...

    What about this?


    typedef struct
    {
    char address[100]
    int phone;
    }contact;

    typedef struct
  9. Replies
    8
    Views
    1,048

    Obviously it says error. Then please tell me...

    Obviously it says error. Then please tell me what's the correct way of typing it.
  10. Replies
    8
    Views
    1,048

    About Structures

    Here's my code:


    typedef struct
    {
    char address[100]
    int phone;
    }contact;

    typedef struct
  11. Replies
    16
    Views
    1,893

    I have also thought of another way... Please...

    I have also thought of another way... Please advise which will be better.

    while I read '*'
    if I read '*'
    continue;
    else if I read '\n'
    break;
  12. Replies
    16
    Views
    1,893

    For my instance, am I right at the following? ...

    For my instance, am I right at the following?

    [CODE]while I am not at the first value of the line after '*'
    if I read '*'
    continue;
    else if I read '\n'
    break;[\CODE]
  13. Replies
    16
    Views
    1,893

    do { while ((c=fgetc(Pattern))!='*') {...

    do
    {

    while ((c=fgetc(Pattern))!='*')
    {
    //read 1st pattern [1 1 1;2 2 2;3 3 3]
    }

    //compare with Matrix file
  14. Replies
    16
    Views
    1,893

    I still don't get it. Is it possible to instant...

    I still don't get it. Is it possible to instant messaging here? Or can someone send me an email at <<snipped>>? I don't want to post my homework script online.
  15. Replies
    16
    Views
    1,893

    if((c=fgetc(Matrix))=='*') { while (c=='*') {...

    if((c=fgetc(Matrix))=='*')
    {
    while (c=='*')
    {
    continue;
    if(c=='\n')
    break;
    }
    }
  16. Replies
    16
    Views
    1,893

    Here's my try... if(c=='*') { while...

    Here's my try...



    if(c=='*')
    {
    while (c=='*')
    {
    continue;
    if(c=='\n')
  17. Replies
    16
    Views
    1,893

    Are you referring to something like this...

    Are you referring to something like this?
  18. Replies
    16
    Views
    1,893

    if (c=='*') { c=c+4; getc(Matrix); } I...

    if (c=='*')
    {
    c=c+4;
    getc(Matrix);
    }


    I am trying really hard. PLEASE PLEASE HELP!
  19. Replies
    16
    Views
    1,893

    About character.

    Is it possible to ask the program to read the line after a character?

    For example,

    1 1 1
    2 2 2
    3 3 3
    *****
    4 4 4
    5 5 5
  20. Replies
    4
    Views
    1,566

    I have tried to change to %0.10f sec also no use....

    I have tried to change to %0.10f sec also no use. The super duper long program has a huge size for each for loops. :\
  21. Replies
    4
    Views
    1,566

    Why difftime=0?

    time_t start,finish;

    time(&start);

    a super duper long program

    time(&finish);

    printf("Time Taken: %.4f sec", difftime(finish,start);
  22. Replies
    7
    Views
    876

    I know about the value of b[c] part. It's just...

    I know about the value of b[c] part. It's just not shown here. Anyway, thanks. I will read up on array then will try again.
  23. Replies
    7
    Views
    876

    int a,b,c; for (c=0;c

    int a,b,c;

    for (c=0;c<20;c++)
    {
    if (b[c]<100)
    {
    a=b[c];
    }
    }
  24. Replies
    7
    Views
    876

    A question about array

    How do I read/get value of c from here:


    for loops
    {
    if loops
    {
    a=b[c];
    }
    }
  25. Replies
    5
    Views
    1,867

    #include #include #include...

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


    #define size 25


    main()
Results 1 to 25 of 33
Page 1 of 2 1 2