Search:

Type: Posts; User: Gareth Morgan

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    582

    What does ^ do?

    I'm a noob at C programming and I have a line of code

    "P5_0^=1;"

    which basically toggles an LED on a board I'm using when a switch is pressed.

    Can someone explain to me what it is the ^...
  2. Replies
    4
    Views
    1,630

    Basic dice simulator

    I am trying to write a code for a basic dice simulator program. When a switch is pressed the two seven segment displays will rapidly change between 1-6. When the button is released the random number...
  3. Replies
    16
    Views
    2,228

    One last question. how do I get the last bit of...

    One last question. how do I get the last bit of my code to repeat the application once its finished assuming the user clicks Y?


    //


    #include <stdio.h> //commands that essentially...
  4. Replies
    16
    Views
    2,228

    Thanks. That was actually kinda obvious if I had...

    Thanks. That was actually kinda obvious if I had thought about it! lol It worked after a few failed attempts! Finally finished my project. Thanks for all your help everyone!
  5. Replies
    16
    Views
    2,228

    yes the (float) worked plus the %%. So random. ...

    yes the (float) worked plus the %%. So random.

    One last question. I need to add the Q prefix to each question. So it should say Q1 5*4, Q2 8*6 so on until Q10. Any ideas? I haven't got a clue!
  6. Replies
    16
    Views
    2,228

    I have tried but I get this issue 12281 ...

    I have tried


    but I get this issue
    12281

    How do I resolve this?
  7. Replies
    16
    Views
    2,228

    Did not get this at all. I did implement what you...

    Did not get this at all. I did implement what you said above and that makes sense. Here's what I have now....
  8. Replies
    16
    Views
    2,228

    Ok I didn't 100% understand what you meant. I...

    Ok I didn't 100% understand what you meant. I haven't really touched define stuff yet. Here's what I've tried to do to get the final message of "you answered ...% of the questions correctly".

    ...
  9. Replies
    16
    Views
    2,228

    help with this code- loops

    I'm writing a program to create 2 random numbers and ask the user what's the product of these 2 eg (5*4=?). I have written the code for this but the program needs to test the user 10 times. And on...
  10. Replies
    5
    Views
    1,119

    Thanks for your comments. Its working now. Used a...

    Thanks for your comments. Its working now. Used a different compiler and used your changes.
  11. Replies
    5
    Views
    1,119

    Can some one check this code for me?!

    I have an assignment due and the lecturer gave me this code to add to the end of it. however I think Ive written it down wrong as its doesnt compile.



    #include <stdio.h>
    #include <ctype.h>...
Results 1 to 11 of 11