Hi Everyone this is my Calculator it work almost fine now
but first i forgtten return 0 ;
en everytime i putted in a letter instead of a number it started to loop
now is my Question: What does the return 0: does?
What is the slash on line 39?
What's the point of the label named calc and the 1 at the end of line 17?
The return 0 informs the OS that called the prog that things ended normally. It's necessary to make sure your prog doesn't crash on exit.
Why do you use system() on line 6? I assume you mean printf() or cout<<. If I were you I'd use:
1 2 3 4 5 6 7 8 9 10
#include <stdio.h>
longdouble Fnum; // First number
longdouble Snum; // Second number
char buff[64];
scanf("%64s", buff);
sscanf(buff, "%Le%c%Le", &Fnum, &operation, &Snum);
Also, if you want your loop to be infinitive, just use while(1), but you better use something like while(! (Fnum==0 && Snum==0)).
No it's to change the title from the Console window