Search:

Type: Posts; User: chocolatecake

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    1,422

    pseudo code: ... for read next element sp of...

    pseudo code:

    ...
    for
    read next element sp of RS.
    ...

    Then instruction:
    The remainder of the program executes a loop, one iteration per element in the reference string RS
  2. Replies
    6
    Views
    1,422

    reference string

    What's a reference string?
    A string is a sequence of characters.

    A reference string is a string that points to something?
    It can point to anything?
  3. I got it. I have to put the recursiveFCT...

    I got it.

    I have to put the recursiveFCT outside of main.
    I keep forgetting simple stuff.
  4. more concise code. #include ...

    more concise code.



    #include <stdio.h>


    void recursiveFunction(int position, int nodesTrav[20],int cost,int complete);
  5. undefined reference to `recursiveFunction'

    THis is a long peice of code.
    I colored the important parts in red.

    I get the error: undefined reference to `recursiveFunction'

    Please don't try to understand what that code does because I am...
  6. Sorry, I got it, I misspelled it. Shame on me.

    Sorry, I got it, I misspelled it.

    Shame on me.
  7. undeclared (first use in this function)

    Hi

    I am writing a function. I am not calling it yet.



    main()

    {
    //stuff
  8. Replies
    5
    Views
    1,902

    Thank you very much.

    Thank you very much.
  9. Replies
    5
    Views
    1,902

    So how do I convert char a to a string???

    So how do I convert char a to a string???
  10. Replies
    5
    Views
    1,902

    getc and atoi

    int i;
    char a;
    FILE *input = fopen( "a.c", "r" );

    for(i = 0; i < 1000; i++){
    if (( a = getc(input)) == '2')
    i = (int)atoi(a);
    printf("%d",i);
    }
Results 1 to 10 of 10