[ create a new paste ] login | about

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

C++, pasted on Nov 2:
#include "deneme.h"
using namespace std ;

Course :: Course ( int code, string name )
{
	this -> code = code;
	this->name = name ;
	(this->asd).push_back(1);
(this->asd).push_back(2);
(this->asd).push_back(3);
(this->asd).push_back(4);
(this->asd).push_back(5);
(this->asd).push_back(4);
(this->asd).push_back(1);
} 

int Course :: getCourseCode()
{

	return this -> code;
}

string Course::getName ()
{
	
  return this->name ;
}


void Course::vektor()
{
	for(int i=0;i<asd.size();i++)
	{
		cout<< asd[i];
		if(asd[i]==4){throw(4);}
	}

}


Output:
1
2
3
Line 19: error: deneme.h: No such file or directory
Line 4: error: 'Course' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: