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.
Type: Posts; User: Raskalnikov
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.
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....
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...
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...
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...
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");
There are made using existing libraries.
Can you provide a sample input file?
Does the user hit return when entering each new value? Or is the whole equation entered in as one string?
Can you please post what you've corrected? I'm interested in how you've managed to parse the string - using sscanf or not.
Your for loop
for(i = 0; i < MAX_STACK_SIZE; i++)
{
stack[num_operand]=x;
num_operand ++;
}
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...
I don't know if it meets the "simple" guideline, but have you looked at openGL?
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...
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
I prefer writing C in an editor with syntax highlighting for this very reason. That and bold keywords look cool.