Im trying to put data into an array
#include <iostream>
#include <stdio.h>
#include <cstring>
using namespace std;
struct table {
int number;
double rate, hour;
string name;
} test[5];
int main()
{
test[0]={2,0.0,1.1,'m'};
test[1]={2,0.0,1.1,'m'};
return 0;
}
I know the syntax is wrong for this test[0]={2,0.0,1.1,'m'};
. please correct it.