Search:

Type: Posts; User: SirSig

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    2,497

    I managed to fix my code. I was actually...

    I managed to fix my code.

    I was actually decrementing the wrong thing in my while loop. I also changed from !isalpha( ) to !isalnum( ). My while loop should have been:



    while(TRUE) {

    ...
  2. Replies
    4
    Views
    2,497

    I was told isalpha checks whether or not...

    I was told isalpha checks whether or not something is a letter. I actually forgot to put the not operator in front of the two isalpha functions, which I have in my code.

    my while loop is actually...
  3. Replies
    4
    Views
    2,497

    Palindrome function fun

    Hello programmers,

    My assignment is to create a function that checks whether or not the user inputted string is a palindrome.

    I think I made a mistake in the palindrome function because it...
  4. Replies
    5
    Views
    1,142

    Ahhh, sorry I did not know the proper etiquette....

    Ahhh, sorry I did not know the proper etiquette. I realized my problem as soon as I posted it so I did not want to take up any body's time.

    My code was:



    /*-------------
    Include Section...
  5. Replies
    5
    Views
    1,142

    Array function help!

    Edit:

    I figured out my problem, it was that I am stupid. -_-

    Please delete this thread.
  6. Replies
    5
    Views
    1,445

    Ohhh, I see why you use i rather than userinput....

    Ohhh, I see why you use i rather than userinput.

    I agree that it is inefficient, thats why the assignment cannot check higher values, but in class we have not learned arrays.

    Thank you for all...
  7. Replies
    5
    Views
    1,445

    [C] for loop problem

    Hi, I'm working on a program which is supposed to identify prime numbers and output prime pairs (prime numbers which are 1 integer value away from each other).

    My function for checking prime...
  8. Replies
    3
    Views
    1,518

    Thanks for your reply. So if I define avg as a...

    Thanks for your reply.

    So if I define avg as a float does that fix it, and if its defined as a float do I still need the remainder?

    I put colons there and they do not show up regardless.
    ...
  9. Replies
    3
    Views
    1,518

    Arithmetic Operations and formatting help!

    I am supposed to write a code for my very first assignment where when the user enters four integers the program would perform several operations on it.

    The problem I am having is that the product...
Results 1 to 9 of 9