It was that combined with infinite recursion. I've fixed it. Thanks for the help guys!
Type: Posts; User: Blurr
It was that combined with infinite recursion. I've fixed it. Thanks for the help guys!
When I try to catch out_of_range g++ says that that it has not been declared. Any clues as to how I'd fix it?
Isn't that stopped with
> if (x)
and
> if (y)
?
Elysia: Will do
I'd start a thread about it. ;)
I'll read up on vectors, thanks. But for now, I've changed the code to
void theoFlood(int x, int y, int val)
{
efficient[val - 1]++;
if (x)
if (grid[x-1][y] == val)
I keep getting a segfault with the following code, the only thing I have been able to gather is that I always get the segfault when "val" is 2.
int efficient[6];
extern const int gridsize...
Thanks. I got it.
Hey,
I'm writing a program that takes input from a file called index.txt. I want to be able to discard blank lines. This is what I have:
while (!feof(fp_fileNamesCheck))
{
...
Thanks a lot! It works just how I wanted now!
fgets doesn't work. It appends the /n char and I get this:
Error, file1.txt
does not exist.
And using "[^/n]" just makes the program loop an endless sea of errors.
Hey,
I have a program that reads the files in its directory, and then puts them in a .txt file:
strncat(DirSpec, "\\*", 3);
hFind = FindFirstFile(DirSpec, &FindFileData);
...
Whoops, hadn't thought of that. Thanks.
Thanks for the help, and especially the explanation. Still can't find anything on including variables in other variable's names. :(
Problem is, I couldn't find any tutorials on either << or >>. So I just guessed on what they did. I'll look over the tutorials one more time though.
Hey, I'm rather new at C++ (just started today, actually.) And as practice I'm trying to write a program to create a stat block for DnD and output it to notepad.
This is my problem:
I'm trying...