OK guys am kinda new to c++ but I have a bit of knowledge about c though. The other day in class I wrote this code but it wont compose on visual c++, am asking for some help because I got an error I don't understand, Thanks in Advance. The Code Is As Follows:
Code:
/Date.h
#ifndef DATE_H
#define DATE_H
#include<iostream>
using std::cout;
class Date{
private : int day, month, year;
public :
Date( )//constructor
{
day = month = year = 0;
}
Date(int d, int m, int y)//primary constructor
{
setDay(d);
setMonth(m);
setYear(y);
}
void setDay (int d)
{
day = (d>=1&& d<=31)?d:0;
}
void setMonth (int m)
{
month = (m>=1 && m<= 12)?m:0;
}
void setYear (int y)
{
year = (y>=0 && y<= 9999)?y:0;
}
int getDay () {return day;}
int getMonth() {return month;}
int getYear(){return year;}
void display(){
cout << day <<"/"<<year<<"/"<<year"/";
}
};// closes the class
#endif
The error it says am getting is a build error : 1>------ Build started: Project: Drivers_License, Configuration: Debug Win32 ------
1>Embedding manifest...
1>.\Debug\Drivers_License.exe.intermediate.manifes t : general error c1010070: Failed to load and parse the manifest. The system cannot find the file specified.
1>Build log was saved at "file://c:\Users\admin\Documents\SCIT 2D\C++\Drivers_License\Drivers_License\Debug\Build Log.htm"
1>Drivers_License - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
When I try to compile it also in borland I only get one error which is a statement missing error(.