
Geschrieben von
neon
(Moderator) am 02.02.2009 um 22:46 Uhr.
Beiträge: 56 /
#1752
Kontakt:
Mailen
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
#include <windows.h>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
string tostr(double dZahl)
{
string sOut;
stringstream sstr;
sstr << dZahl;
sstr >> sOut;
return sOut;
}
int main()
{
double a, b, c;
string A, B, C;
while(true)
{
cout << "a = ";
cin >> a;
cout << "b = ";
cin >> b;
cout << "c = ";
cin >> c;
b = b/a;
c = c/a;
b=b/2;
c = c-(b*b);
c = a*c;
b = b*(-1);
cout << "S(" << tostr(b) << "|" << tostr(c) << ")\n" << endl;
}
return 0;
}