Search:

Type: Posts; User: benjaminp

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    26,641

    ping-pong game

    I am trying to write the ping-pong game.
    The problem is that I cannot make the ball bounce from the top and the bottom sides. When it is near one of the sides it just continues going in the same...
  2. Replies
    8
    Views
    2,504

    thanks. problem solved.

    thanks. problem solved.
  3. Replies
    8
    Views
    2,504

    Now it is working properly: #include...

    Now it is working properly:


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


    char* reverse (char string []);
    void print_string (char* string);
  4. Replies
    8
    Views
    2,504

    the full code is: #include ...

    the full code is:


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


    char* reverse (char string []);
    void print_string (char* string);
  5. Replies
    8
    Views
    2,504

    Segmentation fault (core dumped)

    I do not understand where the error is.
    The function should reverse a string.


    #include <string.h>

    char* reverse (char string [])
    {
    int cntr = 0, len = (strlen (string) - 1);
    char...
  6. Replies
    6
    Views
    3,279

    is it C?

    is it C?
  7. Thread: About scanf

    by benjaminp
    Replies
    15
    Views
    5,433

    because the scanf function can not handle a...

    because the scanf function can not handle a string if you told it that you would enter a floating value.
  8. Thread: About scanf

    by benjaminp
    Replies
    15
    Views
    5,433

    your program should write user's input into a...

    your program should write user's input into a string and then if it is correct convert it to a number and then calculate bmi.
    wait, i am working on it.
  9. Thread: About scanf

    by benjaminp
    Replies
    15
    Views
    5,433

    scanf referencescanf - C++ Reference...

    scanf referencescanf - C++ Reference
  10. Replies
    5
    Views
    1,050

    Use MinGW MinGW | Minimalist GNU for Windows...

    Use MinGW MinGW | Minimalist GNU for Windows.
  11. Replies
    1
    Views
    987

    C library to download files

    I have written a program that prints current temperature in my city, but it uses the cURL program to download an html page that contains temperature. I do not want a user of my program to download...
Results 1 to 11 of 11