[ create a new paste ] login | about

Link: http://codepad.org/d5Epig9R    [ raw code | output | fork ]

C++, pasted on Nov 2:
#ifndef deneme_h
#define deneme_h

#include <vector>
#include <string>
#include <iostream>
#include <algorithm>

using namespace std ;
class Course
{
public:
Course ( int code, string name ) ;
int getCourseCode () ;
string getName ();
void vektor();
vector<int> asd ; private:
    string name;
    int code   ;
    
};


class Offering
{

  public:
    Offering ( Course * course  = NULL) ;
	    Course     * getCourse     () ;
    void vektor2();
 private:

    Course     * course    ;
  friend ostream & operator<< ( ostream & out , Offering & offering ) ;
};

#endif


Output:
1
2
In function `_start':
undefined reference to `main'


Create a new paste based on this one


Comments: