Im looking into doing a countdown program, does anybody know a good way to compare today's date and time to the desired date and time and give the difference in days, hours, minutes, and seconds?...
Type: Posts; User: Zagaberoo
Im looking into doing a countdown program, does anybody know a good way to compare today's date and time to the desired date and time and give the difference in days, hours, minutes, and seconds?...
Works perfectly, many thanks, Prelude
If you are simply looking to have the program print the numbers backwards, simply do this
#include <iostream>
using namespace std;
int main()
{
int numbers[4];
I would like to put my DOS programs into fullscreen using some sort of code (in MS Visual C++ 6.0 standard). On windows 98 you can press a button on the DOS console to make it fullscreen, but you...
Using time.h when I code something like this,
#include <iostream>
#include <time.h>
#include <system.h>
int main()
{
I need a graphics libary that I can use with my Microsoft Visual C++ 6.0 and a header with functions to use it (drawing lines, shapes; bitmaps; sprites) without using windows (DOS, Specifically) I...
kbhit() is a nifty little function, but can you make it useful, like getch()? I would really like to make a real-time game and need some kind of passive keyboard input that does not "pause" my...
what is kbhit? what header does it require? how is it used?
I have used cin to get keyboard input for variables, getch() for getting single keypress information, but all of those cause the computer to wait for a keypress. I would like to have some kind of...
Thank you SO much!
Thanks, Hammer. the thread you linked to solved my problem.
Thank you, that solved my problem completely.
Whenever I have a char and want it to equal " " (a space) such as
[code]
char ch;
ch = " ";
[\code]
I get this really annoying error that I cannot convert a char[2] to a char. the same thing...
I love using the getch() function but only know how to use alpha-numeric keys and the return (\r) key. I would really like to have a list of keys such as the up, down, left, and right arrow keys; the...
In the source code attached I am using both the header files <string.h> and <fstream.h> and my compiler is telling me that ifstream and ofstream are ambiguous symbols. I have located the source of...