Search:

Type: Posts; User: BC2210

Search: Search took 0.00 seconds.

  1. Simple regular expression to find word in a string?

    Hey,

    I have assignment to do for class and the beginning part is to design a regular expression as follows:

    Over the alphabet Σ of ASCII characters, define a Regular Expression that describes...
  2. Adding multiplication signs to a math formula...

    Hey,

    I'm wrapping up a project for school and for the life of me I cant figure out how to place multiplication signs in the correct places of a math formula.

    The basic idea of the project is to...
  3. Replies
    9
    Views
    6,514

    Thanks a lot for the replies! I was able to get...

    Thanks a lot for the replies! I was able to get it working...
  4. Replies
    9
    Views
    6,514

    SOLVED: Check to see if an integer is equal to 1-9?

    Hey,

    Im trying to see if an integer holds the value 1-9 in my program. I think this is whats stopping me.

    My statement looks like:


    if(x = 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9)...
  5. Replies
    7
    Views
    1,255

    Very simple question...annalyze strings

    Hey,

    I know this is basic but its the only thing I need to have my program working for school!

    I have a char buff[512].

    Theres a possibility the first characters might be "exit" ... with a...
  6. Replies
    2
    Views
    1,144

    Actually now Im getting the letter O...

    Actually now Im getting the letter O...
  7. Replies
    2
    Views
    1,144

    Weird stack problem...

    OK, Im not sure why this is happening, but Ive traced my code all the way back to the top and this is just the beginning of my program...



    typedef struct NodeT
    {
    struct NodeT *L,...
  8. Replies
    10
    Views
    38,514

    Awesome...I dont really have it inside a loop. ...

    Awesome...I dont really have it inside a loop. Im calling a getChar function inside a while loop that just gets next char until it reaches \0.
  9. Replies
    10
    Views
    38,514

    Check char for a space or for end of array?

    Hey,

    In my program to turn an infix statement into a postfix or prefix statement, I want to check if a character from my input is equal to a space OR if it is equal to the end of the array.

    So...
  10. Awesome i got ya! Thank you so much!

    Awesome i got ya! Thank you so much!
  11. That works! Thats crazy, why do you have to...

    That works! Thats crazy, why do you have to clear the buffer, and why does getchar() do it for you! Ha off to google....
  12. Am i allowed to say scanf("%c", &again) in that...

    Am i allowed to say scanf("%c", &again) in that spot? Because like I have it commented out, if I have it just like that, the program does not pause to allow me to enter a char and just keeps running...
  13. I have no idea why my program just worked once...

    I have no idea why my program just worked once when I changed the initializations, and now its not working again after no other changes...weird
  14. For some reason when I put %c in there instead,...

    For some reason when I put %c in there instead, it wont let me enter a character! Its just like the statement is not even there!
  15. Thank you so much! It works! I had no idea!

    Thank you so much! It works! I had no idea!
  16. Help with a very simple C program....Already written, not working right!

    Hey,

    I have to write a program for class that takes in a last name, first name, and exam score and stores them into seperate arrays. No structs in this however. Then I have to print the high...
Results 1 to 16 of 16