kind of... more like this?
struct complex x, y, z;
printf("Please enter the two real and imaginary complex numbers (a+jb) :\n");
printf("\nPlease enter the next two real and imaginary complex numbers … Read More
> else if(ch==81||ch==113)
What do 69 and 101 mean? What do 81 and 113 mean? If you force me to memorize ASCII/Unicode or go to asciitable.com to figure out your code then your code is bad. Use the character literals that correspond to what you want, it makes … Read More
is this code will run on all compiler
struct Complex x;
printf("\nPress E then press Enter to Enter Complex Number");
printf("\nPress Q then press Enter to quit\n");
if(ch=='E'||ch=='e') // if user enter E … Read More
> erm i'm using the compiler in quincy 2005?
Quincy is an IDE, not a compiler. It uses MinGW as a back end, which basically amounts to the GCC compiler. GCC supports C99 under that version, as far as I can tell, but you have to turn it on with … Read More
> do you mean that code
No, I mean this code:
There's no guarantee that you'll see "real number:" before scanf() blocks for input, which means the user will have no clue what the program is waiting for. If you're not *ending* the … Read More