How do I compress the files?
Type: Posts; User: abrege
How do I compress the files?
I'm making a text-based rpg. The program loads map and character data from .txt files. But that makes it easy for the user to go into the .txt file and, for example, change their amount of gold. How...
Thanks for the help guys, here's my finished code
#include <iostream>
#include <fstream>
using namespace std;
#define MAP_WIDTH 70
#define MAP_HEIGHT 22
#include <iostream>
#include <fstream>
using namespace std;
#define MAP_WIDTH 70
#define MAP_HEIGHT 22
void readMap(int map[MAP_WIDTH][MAP_HEIGHT])
{
ifstream fin;
perfect! much thanks
Using virtual key codes, I want to make my program respond to the user when he presses the A letter key. MSDN tells me to use VK_A, but that comes up as unidentified. Solutions?
Jigga wha?
thanks!
XP, MSVC++
How might I go about searching a person's HD for a single file, and then getting the directory of which the particular file resides in? Thanks.
indeed :mad:
bool isEven(int number)
{
bool status;
if (number % 2)
status = false;
else
status = true;
return status;
Well, why didn't you guys tell me the steak tasted like cat meat? :rolleyes:
Grilled Steak Soft Tacos all the way
extern "C" system(const char *);
int main()
{
system("echo Hello World!");
system("pause");
return 0;
}
For example...
for(int i = 0; i < sizeOfVecHere; i ++)
cout << vec[i];
Thanks
Here in America we exercise the right to call things as they are named. Fries are fries, chips are chips. Beautiful isn't it?
It's fine.
Sadly, your sig is the perfect portrayl of LouDu. Hasn't he realized that he lost credibility on these forums a long time ago?
Holy hell, you've blinded me. Anyways, this might answer your questions: http://cboard.cprogramming.com/showthread.php?s=&threadid=33318
RoD, that was quite uncalled for.
If you must resort to a goto I hardly believe that you've tried hard enough.
A constructor is called when its class is initialized as an object. A deconstructor is called when the object is put out of play.
Google? Yes, google.