Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <string>
- #include <iostream>
- using namespace std;
- class Graph
- {
- private:
- string identifier;
- string zone;
- public:
- int path = 0;
- Graph();
- ~Graph();
- };
- Graph::Graph()
- {
- cout<<"Konstruktor - przypisuje wartosc"<<endl;
- int graf = {};
- cin>>graf;
- cout<<graf;
- }
- Graph::~Graph()
- {
- cout<<"Obiekt usuwany z pamieci"<<endl;
- }
- int main()
- {
- char graf[20];
- for (int i=0; i<10; i++)
- {
- cin>>graf[i];
- }
- cout<<graf<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement