Ooh thanks, that makes a lot more sense now :)
Type: Posts; User: IGAU
Ooh thanks, that makes a lot more sense now :)
I do have <sys/timeb.h>, so I'm looking at ftime(), but I don't really understand it's application. I'm not an advanced programmer in any respects... Sorry to sound like a newbie or whatever, but can...
Windows XP (but preferrably, this source could be distributed and compiled anywhere)...
I'm using LCC-Win32 to develop.
Thanks for your reply, but I can't seem to find anything useful from there... Most of them are referring to timing events, which is not what I'm looking for. I'm quite happy to compile in whatever...
Please don't kill me if this is blindingly obvious, but I'm about to go crazy, after searching for absolutely ages on the Internet.
I want to get the current system time and write it to a file as...
Thanks Salem :) Saves me a few lines of code. Although ironically I'll be making it horrifically odd and obscure.
Question for #2, can we output to a text file, seeing as printing all of it to screen would result in about 4/5 of it not being visible?
Nevermind, figured it out now. Incrementing the flag wasn't enough, it needed to reset it to number + 2... works now :D
Um...maybe I used the variable name "grid" badly, but I also said it's in a single row.... what I mean is........
XXXXXXXXXXXXXXXXXXXXXXXXXX
That's why it wont be much help :D
Anyway..... I...
I just moved it further up the subroutine, instead of into main()... It seems to work now.
Something is seriously wrong in my checking loop though, as occasionally I end up with "MMMM" or "MMMMM"...
I dont see why a two dimensional grid would help............ anyway....
Using minepos = rand() % maxpos + 1; on it's own without the srand() solves the problem, but it does give rise the new...
This program is basically a single line minesweeper game. All I have here is the process of selecting where to put mines and displaying them.... but the subroutine to do that is messed up...