Search:

Type: Posts; User: Blurr

Search: Search took 0.00 seconds.

  1. Thread: Segfault Woes

    by Blurr
    Replies
    12
    Views
    1,557

    It was that combined with infinite recursion....

    It was that combined with infinite recursion. I've fixed it. Thanks for the help guys!
  2. Thread: Segfault Woes

    by Blurr
    Replies
    12
    Views
    1,557

    When I try to catch out_of_range g++ says that...

    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?
  3. Thread: Segfault Woes

    by Blurr
    Replies
    12
    Views
    1,557

    Isn't that stopped with > if (x) and ...

    Isn't that stopped with

    > if (x)

    and

    > if (y)
    ?

    Elysia: Will do
  4. Thread: Segfault Woes

    by Blurr
    Replies
    12
    Views
    1,557

    I'd start a thread about it. ;)

    I'd start a thread about it. ;)
  5. Thread: Segfault Woes

    by Blurr
    Replies
    12
    Views
    1,557

    I'll read up on vectors, thanks. But for now,...

    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)
  6. Thread: Segfault Woes

    by Blurr
    Replies
    12
    Views
    1,557

    Segfault Woes

    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...
  7. Replies
    3
    Views
    2,374

    Thanks. I got it.

    Thanks. I got it.
  8. Replies
    3
    Views
    2,374

    Discarding blank lines?

    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))
    {
    ...
  9. Replies
    4
    Views
    1,418

    Thanks a lot! It works just how I wanted now!

    Thanks a lot! It works just how I wanted now!
  10. Replies
    4
    Views
    1,418

    fgets doesn't work. It appends the /n char and I...

    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.
  11. Replies
    4
    Views
    1,418

    Ignoring Lines and Continuing through Spaces,

    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);

    ...
  12. Replies
    8
    Views
    1,161

    Whoops, hadn't thought of that. Thanks.

    Whoops, hadn't thought of that. Thanks.
  13. Replies
    8
    Views
    1,161

    Thanks for the help, and especially the...

    Thanks for the help, and especially the explanation. Still can't find anything on including variables in other variable's names. :(
  14. Replies
    8
    Views
    1,161

    Problem is, I couldn't find any tutorials on...

    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.
  15. Replies
    8
    Views
    1,161

    Looping Variables and outputting to .txt

    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...
Results 1 to 15 of 15