Search:

Type: Posts; User: cda67

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,919

    That else if structure really helped, and I...

    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...
  2. Replies
    6
    Views
    2,919

    Alright, I've tried to make my program simpler,...

    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 =...
  3. Replies
    6
    Views
    2,919

    Catching user errors

    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...
Results 1 to 3 of 3