how to convert this C++ code to Turbo C?
问题 C++ code: cout << "Roots are complex and different." << endl; cout << "x1 = " << realPart << "+" << imaginaryPart << "i" << endl; cout << "x2 = " << realPart << "-" << imaginaryPart << "i" << endl; How can I convert this to Turbo C like printf instead of cout ? 回答1: May be you are seeking for this: printf("Roots are complex and different.\n"); printf("x1 = %lf+%lfi\n",realPart,imaginaryPart); printf("x2 = %lf-%lfi\n",realPart,imaginaryPart); if realPart and imaginaryPart variables are in data