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...
Type: Posts; User: benjaminp
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...
thanks. problem solved.
Now it is working properly:
#include <stdio.h>
#include <string.h>
char* reverse (char string []);
void print_string (char* string);
the full code is:
#include <stdio.h>
#include <string.h>
char* reverse (char string []);
void print_string (char* string);
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...
is it C?
because the scanf function can not handle a string if you told it that you would enter a floating value.
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.
scanf referencescanf - C++ Reference
Use MinGW MinGW | Minimalist GNU for Windows.
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...