,   CyberForum.ru

Money, - C++


 
C++ http://www.cyberforum.ru/cpp-beginners/thread716345.html
)) : x^2,x^3 ,x^6, x^7,x^10, , ...
C++ (0;4.2] http://www.cyberforum.ru/cpp-beginners/thread716326.html
C++
. .
char. C++
operationF, operationS (), () . coutMatrix, coutVector, ...
C++ http://www.cyberforum.ru/cpp-beginners/thread716317.html
, ;( ( Resc) if (abit.sumball>220) ...
C++ union MyUnion { int int_num; long long ll_num; }; int main() { MyUnion uni; uni.int_num = INT_MAX;

LexaB
0 / 0 / 0
: 31.10.2011
: 31

Money, - C++

02.12.2012, 15:49. 797. 3
( )

C++
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
48
49
50
//Ñîçä*éòå êë*ññ Money, â êîòîðîì ïåðåãðóçèòå *ðèôìåòè÷åñêèå
//îïåð*öèè  äëÿ  ð*áîòû    ñ äå*åæ*ûì ôîðì*òîì. Ïåðåãðóçèòå äâ* îïåð*òîð*
//ñëåäóþùèì îáð*çîì:
//double * Money      //óì*îæèòü ÷èñëî ** äå*üãè
//double / Money      //äåëèòü ÷èñëî ** äå*üãè
//Ýòè    îïåð*öèè   òðåáóþò   **ëè÷èÿ äðóæåñòâå**ûõ  ôó*êöèé, ò*ê ê*ê ñïð*â* îò îïåð*òîð*
//**õîäèòñÿ    îáúåêò,   * ñëåâ* -   îáû÷*î ÷èñëî.    Óáåäèòåñü,   ÷òî main()
//ïîçâîëÿåò  ïîëüçîâ*òåëþ  ââåñòè   äâå   äå*åæ*ûå  ñòðîêè  è ÷èñëî  ñ ïë*â*þùåé
//ç*ïÿòîé, *  ç*òåì   êîððåêò*î   âûïîë*èòü  âñå  ñåìü  *ðèôìåòè÷åñêèõ äåéñòâèé ñ
//ñîîòâåòñòâóþùèìè ï*ð*ìè ç**÷å*èé.
 
#include <stdio>
#include <conio>
#include <iostream>
#include <windows.h>
 
using namespace std;
class oper
{
private:
double a,b,summ;
public:
double summa(double, double) ;
//double raznica(double, double);
double umnozhenie(double, double);
//double delenie();
//double delenieNa();
//double umnozhenieNa();
};
double oper::summa(double a,double b)
{
double summ=a+b;
cout<<summ;
}
double oper::umnozhenie(double w, double e)
{double sum=w*e;
cout<<sum;
}
 
void main()
{
double q,w,e;
cin>>q;cin>>w;cin>>e ;
oper a;
 
a.summa(q,w);
a.umnozhenie(q,w);
system("PAUSE");
getch();
}
, , , .
0
? .
 
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
@Mail.ru