When you talk about the object moving across the screen...
Is it...
An ASCII box is moving from the left of the screen to the right. When the user presses a key, the program should beep for...
Type: Posts; User: ZMerlin
When you talk about the object moving across the screen...
Is it...
An ASCII box is moving from the left of the screen to the right. When the user presses a key, the program should beep for...
You can download Turbo C++ Version 1.01 or was it 2.01... at
www.c-for-dummies.com/compilers/
Look under "The Oldiest and Moldiest of them all!"
If you can't find it, or need help installing,...
Most C/C++ Compilers highlight code that is not run, and variables that are initialised, but never used.
Even compilers as old as Turbo C 1.02 warn you if a variable is intialised and not used.
...
This will do it for you.
#include <stdio.h>
void main()
{
int i;
printf("Enter the number : ");
scanf("%d", &i);
With regards to your last post, juss consider %f as double.
%f IS double, and you have learned double. Leave it at that.
"I haven't learned float yet"
You never will, it does not exist....
I guarantee this will work for you.
#include <conio.h>
void main()
{
getch();
}
Here's the simple code I use, that doesn't utilise fscanf...
#include <stdio.h>
#include <stdlib.h>
void main()
{
FILE *streamer;
char stuff[201];
int...
This is a great site with descriptions regarding where you can get Basic C Compilers.
There is a link where you can download Turbo C/C++ Version 2.01
If that isn't quite your taste, there is...
Hey, has everyone forgotten good 'ol Mosaic?
Now that was a DOS Web Browser and a half.
When you 'Run' some code in Turbo C or whatever compiler you are using, it is merely going through and executing the code.
When you 'Build' some code in Turbo C or whatever, you are creating an...
I know exactly what the problem is, had this one myself
the other week.
You aren't passing the strings appropriately,
you need to change the function header (slightly).
Email me and I'll send...