Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstdlib>
- using namespace std;
- class VectorDouble
- {
- friend ostream &operator << (ostream &outs, const VectorDouble &p);
- public:
- int getTala();
- void setTala(int Gauatala);
- private:
- int tala;
- };
- int main ()
- {
- VectorDouble gaui;
- gaui.setTala(5);
- int tala = gaui.getTala();
- cout << "eg get THETTA ALVEG";
- int temp = gaui.getTala();
- cout << endl << "Gaui, sko, sjadu, verkefni " << temp << " er easy";
- cout << endl;
- cout << gaui;
- cout << "er jafn ";
- cout << endl;
- system( "PAUSE" );
- return 0;
- }
- ostream& operator << (ostream& output, const VectorDouble& p)
- {
- output << " GAUI CHECK IT, AWEOMSE";
- return output;
- }
- int VectorDouble :: getTala()
- {
- return tala;
- }
- void VectorDouble :: setTala( int gauaTala )
- {
- tala = gauaTala;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement