Nope, not the same length. For this particular file, the lines range from about 70 to 100 characters long.
Hmm, an index of where each line ends sounds like a good idea. That would most likely...
Type: Posts; User: veecee
Nope, not the same length. For this particular file, the lines range from about 70 to 100 characters long.
Hmm, an index of where each line ends sounds like a good idea. That would most likely...
Hmm, I've heard about memory mapped files, but I'm not too sure exactly what they are. I thought they just copied the whole file into memory so you can access it faster than on disk. I'll have to...
I'm looking for an algorithm that can randomly shuffle every line of an extremely large text file (aprox. 2 to 3 gigabytes). The obvious way is to load every line into a vector of strings and use...
GetLocaleInfoEx (or GetLocaleInfo) might work...but not sure since I never tried it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_GetLocaleInfoEx.asp
or something...
I'd maybe try using SDL with the SDL_Image library. It can read the most popular file formats like the ones you listed.
Grab SDL here:
http://www.libsdl.org/index.php
and SDL_Image here:
...
As long as your have the headers/libraries (i.e. platform SDK), and your unix based compiler can make a win32 executable file, I would think you could do it. I know of one windows app that uses the...
Hmm, under visual c++ 2005, a "hello world" console app using c++'s <iostream> library, and all default settings, creates a 7.5k exe file.
I'd suggest using libctiny though....check out this...
I've never used it, but it looks like you can get version 5.5 for free...and version 6 is the latest. It says 5.5 was released in late 2000, so I doubt it's too bad. If you're just starting out, I...
Yea, this whole thread is off-topic, so hopefuly an admin moves it (maybe to the windows programming board).
Try these forums if you want help with the things you're asking though:
...
Just #include <windows.h> and it should work (assuming you create a complete window or console app first though). I've never used any program called cheat engine, so I can't help you with that. I...
Under windows, you use WriteProcessMemory() and ReadProcessMemory() to modify or read a applications memory. Here's a snippet of some code from an old trainer I made for Battlefield 1942:
...
Yeah, I would say it's a bit too much for someone who's just learned the basics of C++, but I wouldn't get discouraged if that's what really what you want to do.
Perhaps you could start with...
Not sure about programming a bot, but making a game trainer isn't all that hard. The part that's hard is the reverse engineering, and finding out what part of the code affects what. Like trying to...
Here's my take on it, although I didn't bother to make it a function or put it in a class or anything. I'm sure the scaling algorithm could be better still...and I think I miss-used the size_t type,...
This thread should probably be in the Game Programming board, but anyway...
I wouldn't really recomend OpenGL if you're just starting out. While you certainly can do 2D graphics with OpenGL, you...
Just throwin' this in, although you say you've already solved your problem. Back in the day when I did graphics programming, I would use this to get a pointer to the 320x200 (8-bit color) vga...
I tried fixing your code, but I just couldn't figure it out. It seems to be all correct, but we must be overlooking something. I decided to just code my own, but it's slightly different.
In my...
or maybe with the string library...
char s[256] = "some really long string...";
std::string sub(s, 1, 255);
hmm, I just figured he didn't know much about regular expressions and meant that those were variables. I think those *'s would more likely become \s+ if it was a real regular expression also.
Go to Edit>Advanced>View White Space to turn it off
Check the FAQ here:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1042856625&id=1043284385
Regular expressions are nice, but I don't think I'd use a library to deal with whitespace. You could easily just use a C function like sscanf() that will ignore whitespace. Something like:
...
I don't think it's a good idea to read a file character by character just to get the size...it's unecessary, and slow. Instead, you can use fseek() to jump to the end of the file, and then ftell()...
I see what you mean. Check out this doc on msdn...
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_programming/taskbar.asp?frame=true
The...
To hide it from the taskbar (the bar usually along the bottom of the screen), you simply hide your window. Unless you really do mean the list of processes, like in the Task Manager.
ShowWindow(...