That else if structure really helped, and I changed my 'void main' to 'int main(void)'. I got the infinite loops when I inputed a character value, for instance 'ghdjj.' Integer error messages are...
Type: Posts; User: cda67
That else if structure really helped, and I changed my 'void main' to 'int main(void)'. I got the infinite loops when I inputed a character value, for instance 'ghdjj.' Integer error messages are...
Alright, I've tried to make my program simpler, but still getting some infinite loops instead of error messages.
#include <stdio.h>
#include <math.h>
void main()
{
char error_bell =...
Hi guys,
I'm writing a program that calculates resistance values from the colour codes. My program works fine, but I am having trouble catching user errors.
My program should print an error...