#include<cstdio>
#include<string>
#include "inventory.h"
#include "node.h"
#include<iostream>
using namespace std ;
int main (){
inventory*obj1=new inventory();
int size;
int id,i;
char A[100];
char S_string;
cout<<"plz enter the size of the list "<<endl;
cin>>size;
for(i=0;i<100;i++){
cin>>S_string;
A[i]=S_string;
}
int a=strcmp(A[i],"new");
if(a==0){
for(int j=0;j<size;j++){
cout<<"enter the id"<<endl;
cin>>id;
obj1->new_id(id);
}
}
getchar();
getchar();
return 0;
}
it gives me a red line under (A[i]) in [(A[i],"new")];
what should I do ?