Search:

Type: Posts; User: Raskalnikov

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    9,466

    Yes, I just came across it in the tutorial I was...

    Yes, I just came across it in the tutorial I was using. It never mentioned that function before agh, oh well, thanks for the help.
  2. Replies
    2
    Views
    9,466

    Colour printing in ncurses

    I'm writing some stuff using a text based interface. I've decided to go with PDCurses, which essentially is curses for the windows DOS prompt. It mimics the traditional ncurses api in all aspects....
  3. I got it to work :) Turns out there was a lot...

    I got it to work :)

    Turns out there was a lot more involved then I thought there was. We didn't have to use breadth first search I just decided on that one because it seemed to be the easiest out...
  4. Shortest Path Maze Solver (Breadth Search Help)

    Hullo. My latest assignment in computar class has me trying to create a maze solver. Now it is not necessary for the computer to solve for the shortest path, however there are delicious extra marks...
  5. Passing structs to callback functions (GTK+ related)

    I've been working on GUI programming, using the GTK+ API. It's been great fun, though I've run into a frustrating problem I can't wrap my head around.

    I will lightly go over the GTK+ API, as I...
  6. Replies
    8
    Views
    3,197

    Reading a file line by line

    I'm having some trouble with reading a file line by line.




    char *error[100];
    int num[256], x = 0;
    FILE *openme;

    openme = fopen("test", "r");
  7. Replies
    7
    Views
    1,750

    There are made using existing libraries.

    There are made using existing libraries.
  8. Can you provide a sample input file?

    Can you provide a sample input file?
  9. Replies
    14
    Views
    16,523

    Does the user hit return when entering each new...

    Does the user hit return when entering each new value? Or is the whole equation entered in as one string?
  10. Replies
    14
    Views
    16,523

    Can you please post what you've corrected? I'm...

    Can you please post what you've corrected? I'm interested in how you've managed to parse the string - using sscanf or not.
  11. Replies
    14
    Views
    16,523

    Your for loop for(i = 0; i

    Your for loop



    for(i = 0; i < MAX_STACK_SIZE; i++)
    {
    stack[num_operand]=x;
    num_operand ++;
    }
  12. Replies
    2
    Views
    2,257

    I don't quite get the format of your programs I/O...

    I don't quite get the format of your programs I/O handling, tell me if I've got it right here. The first line in the .in file is the number of proceeding lines. An integer and two chars situate...
  13. Replies
    4
    Views
    3,187

    I don't know if it meets the "simple" guideline,...

    I don't know if it meets the "simple" guideline, but have you looked at openGL?
  14. Replies
    8
    Views
    10,350

    Thanks for the replies. The exercises from the...

    Thanks for the replies. The exercises from the enum/typdef chapter in my C book asked for a lot of enum value printing. Consequently, this chapter is before the array chapter so it took a lot of...
  15. Replies
    8
    Views
    10,350

    Printing values from Enum

    I've been struggling with this for some time now. I searched the previous posts and I couldn't find an answer.

    Consider the following.


    enum meat {beef, pork, chicken, salmon };

    Now
  16. Replies
    4
    Views
    3,066

    I prefer writing C in an editor with syntax...

    I prefer writing C in an editor with syntax highlighting for this very reason. That and bold keywords look cool.
Results 1 to 16 of 17