Search:

Type: Posts; User: Dink87522

Search: Search took 0.00 seconds.

  1. Thread: Sscanf

    by Dink87522
    Replies
    4
    Views
    1,808

    Thanks for the help. I fixed the char problem and...

    Thanks for the help. I fixed the char problem and are working on the calculation now.

    Principal and number of times are both showing as 0. Interest rate is showing at 929269760 and number of...
  2. Thread: Sscanf

    by Dink87522
    Replies
    4
    Views
    1,808

    Sscanf

    Hi, I am only just starting to learn C and am trying to write a simple compound interest finding program.

    All 4 of the fgets/sscanf statements give this compile error, althoguh I can't work out...
  3. Replies
    3
    Views
    786

    Thanks. I swapped around srand and rand and I...

    Thanks. I swapped around srand and rand and I also needed to add an ampersand to guess in the scanf so it could find it I think.



    /*Guess the number game v2.0*/

    #include <stdio.h>
    #include...
  4. Replies
    3
    Views
    786

    Undefiend symbol i?

    Where? It looks fine to me.


    /*Guess the number game v2.0*/

    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>

    int main()
  5. Replies
    4
    Views
    6,385

    Thanks for the tips with the strcpy and strcmp...

    Thanks for the tips with the strcpy and strcmp functions. I got the below working to some limited extent. How would I go about converting the user input to lowercase (i.e. if they enter john instead...
  6. Replies
    4
    Views
    6,385

    Lvalue required error

    I am trying to run the simple program below and are receiving the errors "Lvalue required in function main()" when I am trying to reassign the variable name to something else. Why and how would I go...
  7. Replies
    1
    Views
    1,064

    First C program

    Below is my first attempt at a C program (I know a couple of simple programming languages althoguh this is my first attempt at C). The aim is to be a simple Hi-Lo guessing program eventually (the...
Results 1 to 7 of 7