This takes 12 in dec, 2 is the base to be used (binary) and is then stored in the str array. int main(void) { char str[4]; printf("12 to...
My way :) #include<stdio.h> #define TRUE 1 #define FALSE 0 int main(void) { short int exitloop; while(1) { exitloop=FALSE;...
I have examined gamechoice in debug before the return(0) statement and all is as should be. There is nothing wrong with my code as i have re build...
Hi. I know about break. How do you break from a multiple loop. Look at my example again. :)
Can anyone tell me how to do as the title says? I'm told that using goto is a no no. Here is some sample code that i can't seem to be able to...
Thanks for the help but i can't see where it's going wrong. I'll have to stick with the exit(0) for now as i need to get this finished fast. So...
Hi all. Been pulling my hair out on this one. I keep getting the following error when my program hits return(0);. Run-Time Check Failure #2...
Thanks for the sound advice xpi0t0s. I think i'm going to carry on with the C. Once i have learnt that, if they don't want to give me a job then...
I work in the fruit machine industry and we use C to program our reel based products. I was kinda promised a job if I learnt C. Things have...
Thanks guys, you have pretty much said what i thought you were going to say. Cheers
Hi all. Due to changing times in my line of work, ideally I need to be learning C++. I have some knowledge of C so this is my problem. 1 Do...
He's changed his mind now and say's parallel would be better. I'll put the code up once he's altered it :)
As the title says. Whenever i post code, the admin has to edit it to code blocks.
This looks very interesting. The inputs and outputs look good. I want to make a pc driven fruit machine eventually but want to code it in C as...
I don't think you quite get it. Hopper connects to PC. A number of coins are loaded into the hopper, 10p's for example. Program is...
The hopper will count the coins. It looks for a 0v or +5v pulse to count out the coins. I want my programs output to pulse either 0v or +5v via...
Hi Guys. Not sure if this forum deals with the electronic side of programming? I basically want to make a money counting machine thats...
That's it! Thanks for your help with this. I thought i was going mad lol
DEV C++ V4.9.9.2. As you can tell i'm a beginner. I didn't really know which compiler to use so tried a few out and found this to be the most...
When i compile and run your code i still get the same result. It displays a c type character. I don't understand it :nonod:
Separate names with a comma.