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 ^...
Type: Posts; User: Gareth Morgan
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 ^...
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...
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...
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!
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!
I have tried
but I get this issue
12281
How do I resolve this?
Did not get this at all. I did implement what you said above and that makes sense. Here's what I have now....
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".
...
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...
Thanks for your comments. Its working now. Used a different compiler and used your changes.
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>...