Search:

Type: Posts; User: julianenepom

Search: Search took 0.00 seconds.

  1. Replies
    16
    Views
    2,029

    If anyone have any tips, here is the whole code:...

    If anyone have any tips, here is the whole code:

    Thanks again! =)



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
  2. Replies
    16
    Views
    2,029

    Thanks all!! Its working! =)

    Thanks all!! Its working! =)
  3. Replies
    16
    Views
    2,029

    Ok. The error that I get is: When I try to Input...

    Ok. The error that I get is:
    When I try to Input a date like "20110420" using scanf, it gets only the first number, that is "2".

    The code is:



    #include <stdio.h>
    #include <stdlib.h>...
  4. Replies
    16
    Views
    2,029

    Yea. The input size is 8. I will try it here. ...

    Yea. The input size is 8. I will try it here.

    Thx
  5. Replies
    16
    Views
    2,029

    More problems.. =P

    Well, now i cant do some other stuff...

    In this code, the file text.txt is beeing deleted.



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

    int main (void)
  6. Replies
    16
    Views
    2,029

    This code works, but i have some more issues when...

    This code works, but i have some more issues when i use scanf! =O



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

    int main ()
    {
  7. Replies
    16
    Views
    2,029

    Concatenation using system()

    Hi there. Im having some problems with string concatenation.

    The command in windows is:
    ren c:\temp\text.txt text2.txt

    But the number "2" i want to be a variable so i can change after i get...
  8. Replies
    9
    Views
    8,695

    Done.

    I used the do/while, and its ok now. ;) thx for the help
    For anyone how ever needs it, here is the code:



    /* Celsius to Fahrenheit and vice-versa */

    #include <stdio.h>
    #include <stdlib.h>
  9. Replies
    9
    Views
    8,695

    #include #include int...

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

    int calc()
    {

    float var, opc;
    int cmd;
    cmd = 0;
  10. Replies
    9
    Views
    8,695

    I need something like, "Press Enter do start the...

    I need something like, "Press Enter do start the program again".
    What do I need to do?
  11. Replies
    9
    Views
    8,695

    I dont know If anyone got it, but its a program...

    I dont know If anyone got it, but its a program to change Celsius to Fahrenheit.



    main(){
    float var, opc;

    printf("Type the value:");
    scanf("%f", &var);
  12. Replies
    9
    Views
    8,695

    Enter to Continue, Esc to leave

    Hi there. Im having this:



    printf("Press Enter to continue or Esc to leave the program.");


    Now, if the user press "Enter" the program starts again from the begining. If the Escape key is...
  13. Replies
    14
    Views
    2,620

    Oh, thank you so much!!! I will get familiar with...

    Oh, thank you so much!!! I will get familiar with C. ;)

    Thx again!
    July
  14. Replies
    14
    Views
    2,620

    Thx for the posts. Im getting familiar with C. ...

    Thx for the posts. Im getting familiar with C.

    I'm using Dev-C++ to compile this program.

    And about the heart symbol and things like that, im getting this:



    int a, b;
    char c;
  15. Replies
    14
    Views
    2,620

    Thats the way I did it, only using the (If)...

    Thats the way I did it, only using the (If) statement. (Which is required by the teacher).

    Can this be smaller or/and smarter?

    Thx.
    July



    # include <stdio.h>
  16. Replies
    14
    Views
    2,620

    I did what u said. ;) It seems ok here. I will...

    I did what u said. ;) It seems ok here. I will post when the program is ok. =)

    Thx :)
    July
  17. Replies
    14
    Views
    2,620

    Cause I need to read 3 numbers with scanf and...

    Cause I need to read 3 numbers with scanf and then show them. Order by ascending using only the If expression.
    :)
  18. Replies
    14
    Views
    2,620

    Thx!

    Thank u so much! Its ok now.

    Just one thing: Is there by any chance how to store in a char variable multiples int variables?

    Thx again. ;)
    July
  19. Replies
    14
    Views
    2,620

    char = int

    Hi there, i'm new to this forum and new to programming too.

    I did this:


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

    main()
    {
Results 1 to 19 of 19