Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <iomanip>
- using namespace std;
- class TCena{
- private:
- float netto;
- float VAT;
- public:
- TCena();
- TCena(float R);
- TCena(float R, float I);
- friend float getBrutto(float R, float I);
- };
- TCena::TCena(){
- netto=0;
- VAT=0.23;
- };
- TCena::TCena(float N){
- netto=N;
- VAT=0.23;
- };
- TCena::TCena(float N,float V){
- netto=N;
- VAT=V;
- };
- int main()
- {
- TCena::TCena L1(1,2);
- system("PAUSE");
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement