Now I've got a new problem, the queue has a character array, and its getting tricky to get the digits in and out, without being treated as something other than digits.
If I use - 4 2 + 7 as input,...
Type: Posts; User: jcramer
Now I've got a new problem, the queue has a character array, and its getting tricky to get the digits in and out, without being treated as something other than digits.
If I use - 4 2 + 7 as input,...
Ok, I've been tinkering around with the idea some.
Tried doing this assignment with an array based circular queue. (Before you go (o.0) on me, lemme explain).
Ok, after doing some research, I...
Can you tell me if this will work? I'm trying to get the logic down for prefix evaluation using a linklist based queue.
The structure I came up with is:
typedef struct queue
{...
Say my input is like this:
(( 12345 * 10) - (895 / 5))
Currently, I am using fgets to read in equations one line at a time. One of the equations is like the one above.
Then entire line...
*Non-thread bump*
I get it, the silent treatment (j/k).
Thanks for the help guys... yah...
Got it figured out by myself. :mad:
Sorry about that, main() is in another file, all main does is prepare the equation, (parentheses check, removing spaces, removing newlines), then sends the array to the intopost() function.
...
I'm working on a project that involves converting an infix equation to a postfix, and am having problems. If the precedence of the top elementof stack is not greater, it seems to work, but if it is,...
I'm almost finished with a program that uses linked lists to keep track of students and their courses.
Were supposed to print out the course part of the output in a transcript like fashion, (two...
Thank you sooooo much! atoi() fixed my prog!!
Actually yes but, should I then create another array (of int type) just so that I can compare it to acctNbr?
I am working on a project where you have an array of structures to keep track of bank records, and you have to be able to do deposits, withdrawls, adding accounts, etc...
Everything was going...
thanks!
Need some help with my program, supposed to be based on a game of hangman. Where the words that are used come from a file "hMan.in"
Mind you, this is a very, very early version of my project. And...
Jeez relax, I got a million things going on right now ok? here...
Notes: codeStr1 has A-Z and codeStr2 has z to a, sentStr has a couple of sentences in it. I know this is only partially filled in,...
Lemme clarify, I have two code arrays, one uppercase letters (A to Z) and one lower case letters (z to a). And a third array that has a couple of short sentences in it. What I want to do is on each...
how could I modify that for, lets say, searching an array of characters for an instance of a character, and if found, replaces a character in another array?
Barnes and Noble, Borders, etc... all have good books that might be usefull, one I get a lot of use out of it the O'Reilly C Pocket reference.
Guys guys guys!!!! Didnt want to start a flame war, just a newbie programmer seeking help from fellow coders... Good news though, got the program done, works perfectly. Thanks to all who helped...
Ok one last problem, here is the current version of the program. I am having problems with the hareFunc and tortFunc functions. If I put a return(0); at the end of each function, (i.e. getting rid of...
Thx for everyone's help, between y'all and my teacher, the program works, now, the only thing I have to do now is just split the program into separate functions. ( I know, shoulda done that first, oh...
According to the teacher, they do not have to be the same length.
In fact, if one of the commands is invalid, it is supposed to jump out of the loop, and exit the program.
I'm working on a C Programming assignment, and its basically a hare and tortoise racing game.
Here's what I have so far: User puts in a string of commands for the tortoise and the hare. Ex:...
This is sort of off topic but, I just installed Red Hat 9 on my PC, and I use gcc compiler to work on my C programming homework.
I compile a test program that says "Hello World", gcc compiles it,...