Search:

Type: Posts; User: jcramer

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    9,246

    Another problem....

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

    Ok, I've been tinkering around with the idea...

    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...
  3. Replies
    3
    Views
    9,246

    Prefix Evaluation

    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
    {...
  4. Replies
    2
    Views
    1,184

    Reading in from a file

    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...
  5. Replies
    4
    Views
    3,108

    *Non-thread bump* I get it, the silent...

    *Non-thread bump*

    I get it, the silent treatment (j/k).

    Thanks for the help guys... yah...

    Got it figured out by myself. :mad:
  6. Replies
    4
    Views
    3,108

    Sorry about that, main() is in another file, all...

    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.
    ...
  7. Replies
    4
    Views
    3,108

    Converting from infix to postfix

    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,...
  8. Replies
    2
    Views
    1,455

    Printing linked lists

    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...
  9. Replies
    4
    Views
    1,554

    Thank you sooooo much! atoi() fixed my prog!!

    Thank you sooooo much! atoi() fixed my prog!!
  10. Replies
    4
    Views
    1,554

    Actually yes but, should I then create another...

    Actually yes but, should I then create another array (of int type) just so that I can compare it to acctNbr?
  11. Replies
    4
    Views
    1,554

    Incompatible Pointer Type

    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...
  12. Replies
    2
    Views
    1,840

    thanks!

    thanks!
  13. Replies
    2
    Views
    1,840

    Segmentation Fault Error

    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...
  14. Replies
    18
    Views
    2,349

    Jeez relax, I got a million things going on right...

    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,...
  15. Replies
    18
    Views
    2,349

    Lemme clarify, I have two code arrays, one...

    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...
  16. Replies
    18
    Views
    2,349

    how could I modify that for, lets say, searching...

    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?
  17. Replies
    2
    Views
    1,508

    Barnes and Noble, Borders, etc... all have good...

    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.
  18. Replies
    10
    Views
    1,802

    Guys guys guys!!!! Didnt want to start a flame...

    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...
  19. Replies
    10
    Views
    1,802

    Ok one last problem, here is the current version...

    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...
  20. Replies
    10
    Views
    1,802

    Thx for everyone's help, between y'all and my...

    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...
  21. Replies
    10
    Views
    1,802

    According to the teacher, they do not have to be...

    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.
  22. Replies
    10
    Views
    1,802

    Help with arrays

    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:...
  23. Thread: compile prob

    by jcramer
    Replies
    6
    Views
    1,667

    This is sort of off topic but, I just installed...

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