Search:

Type: Posts; User: FernandoBasso

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,258

    You're right. That completely ignored that fact....

    You're right. That completely ignored that fact. Thanks a lot.
  2. Replies
    2
    Views
    1,258

    strcat messing things up?!

    I am having problems with this little program. It should output something like 33 p1, 29 p1, each one properly positioned inside a cell, but because of the line with strcat, ) it is getting messed up...
  3. You guys are right. Thanks for all the tips.

    You guys are right. Thanks for all the tips.
  4. Well, I'm trying to use strtol to convert a...

    Well, I'm trying to use strtol to convert a string to long int, following
    FAQ > How do I get a number from the user (C) - Cprogramming.com



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

    int...
  5. Sure. Sorry for my C n00bness. :) I promise...

    Sure. Sorry for my C n00bness. :)

    I promise I'll improve my skills.

    Thanks.
  6. I'll take a look at that. Thanks.

    I'll take a look at that. Thanks.
  7. std10093, that was an improvement. Thanks. But,...

    std10093, that was an improvement. Thanks. But, try hitting <Tab> several times before <Enter>.
    I just see empty new lines, and no messages any more.


    EDIT:
    Oh, I just added || c == '\t':


    ...
  8. What what could I use instead of scanf? Or...

    What what could I use instead of scanf? Or perhaps a different kind of check... ?
  9. Validade input for integers, but a space is messing it up

    This is the code I have so far:


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

    /* TODO: Fazer a validação para quando o usuário digita um espaço,
    * pois está dando um resultado inesperado, como se...
  10. All right. Thanks a lot.

    All right. Thanks a lot.
  11. But it still prints all characteres one by one?

    But it still prints all characteres one by one?
  12. getchar and putchar - prints entire lines instead of one single char

    I am studying K&R book. There is a code to "copy input to output - 1st version" (page 18). It declares "c" to be int. However, I can type very long strings and it still prints all the characters...
  13. Replies
    2
    Views
    2,043

    Reading. Thanks. (SOLVED)

    Reading. Thanks. (SOLVED)
  14. Replies
    2
    Views
    2,043

    Print new line using 10 in decimal

    How would I print a new line using the decimal 10?

    I have tried:



    printf("Hello \10 world.\10");


    But it doesn't print a new line. However, if I use octal:
  15. Replies
    7
    Views
    1,668

    I strongly disagree with such policy. For...

    I strongly disagree with such policy. For example, when I try to find a solution for a problem on the internet, such as an compiler warning or error, and I see threads marked as solved, it is very...
  16. Replies
    7
    Views
    1,668

    Can't mark threads as SOLVED

    Why can't I edit the first post of threads I initiated and write SOLVED in the title?

    Or there is another way that I'm not aware of?
  17. All right. It worked. Thanks a lot.

    All right. It worked. Thanks a lot.
  18. Can't update value of variable outside of the function

    I am passing the address of the variable 'jog' to the function 'aplica_cordenada', and I update its values inside that function's definition, but it is not being updated outside of it. I am aware of...
  19. Replies
    13
    Views
    2,237

    Okay. I used to think there were a 'better'...

    Okay. I used to think there were a 'better' solution. I'm more relaxed about this subject now.



    Okay.


    So, you mean I shouldn't return arrays from functions because the will either always...
  20. Replies
    13
    Views
    2,237

    All right. Thanks. It is working now: ...

    All right. Thanks.

    It is working now:



    #include <stdio.h>
    #include <string.h>

    /* Protótipo da função. */
  21. Replies
    13
    Views
    2,237

    Return a string from C function (SOLVED)

    Well, so far I have this code:



    #include <stdio.h>
    #include <string.h>

    /* Protótipo da função. */
    char* name_email(char [], char []);
  22. All right. I hadn't noticed that. The teacher...

    All right. I hadn't noticed that. The teacher doesn't teaches us the language. She only "teaches" algorithms. And yes, she instructed the students that "we didn't need curly braces for if else if we...
  23. She sent the source file to me by email. I guess...

    She sent the source file to me by email. I guess she saved it from Dev-C++ to the hard disc before
    sending it to me. (I didn't copy).

    What do you mean by "these diamonds"?
  24. Code written in Dev-C++ won't compile on linux

    The teacher gave us (in the course) the choice of either C or C++. I started with C and my friend with C++. I'm trying to help this friend with this code because she said it is not formatting okay....
  25. Replies
    2
    Views
    1,217

    Of course it should. Thank you very much. I...

    Of course it should. Thank you very much.

    I really need the be more careful in the future.
Results 1 to 25 of 45
Page 1 of 2 1 2