калькулятор.c++
26-03-2016 19:27
к комментариям - к полной версии
- понравилось!
#include
#include
using namespace std;
int main (int argc, char *argv[])
{
char dog;
float x,y;
int xx,yy;
x=0;
while(x<10)
{
y=x*x;
//lineto(x*50+getmaxx()/2,getmaxy/2-(y*20));
x=x+0.02;
xx=x;
yy=y;
cout <> x;
cin >> y;
cout << x<<"+"<> x;
cin >> y;
cout << x<<"-"<> x;
cin >> y;
cout << x<<"*"<> x;
cin >> y;
cout << x<<"/"<y<< endl;
cout << "Hello ! This is a ROOT." << endl;
cin >> x;
//cin >> y;
cout <<"V"<> x;
//cin >> y;
cout << x<<" DEGREES is "<360<<"RADIANS" << endl;
cout << x<<" SIN is "<360) << endl;
dog = '\0';
while (dog != 'q')
{
cout << "Hello ! This is a console app." << endl;
cout << "To create a console, go to Project Options and select" << endl;
cout << "'Win32 Console'." << endl;
cout << "Press q to quit " << endl;
cin >> dog;
cout << int(dog)<< endl;
}
return 0;
}
вверх^
к полной версии
понравилось!
в evernote