i am beginner in c++ programming, I a have struct Employee: Please see the code,
struct Employee
{
int emp_ID = 0;
string emp_Name = "";
string emp_Address = "";
string emp_Contact_Number = "";
string em_position = "";
string dt_emp_started = "";
};
and trying to call it inside int main like,
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <cstdio>
#include <windows.h>
using namespace std;
int main(){
Employee emp;
cout<< "Employee ID : " , cin >> emp.emp_ID;
}
but it returns this error,
'Employee' undeclared identifier.
Did i do it wrong? What should I do to fix it? thanks and regards