M
Maurizio Porcu
Hello i have this my code but have problem with char=char
# include <conio.h>
# include <stdio.h>
struct Pate {
char Nome[20];
};
main()
{
char lettere[3] = { 'A','P','Z'};
Pate articoli[3]={{"gli"},{"un"},{"una"}};
Pate
preposizioni[10]={{"di"},{"a"},{"da"},{"in"},{"con"},{"su"},{"per"},{"tra"},
{"fra"}};
char text[5000],pat[100], te[1];
int no,count,pos[20],i;
clrscr();
cout<<"\n\nInsert text:";
gets(text);
cout<<"Insert one string:";
// gets(pat);
for (i=0;i<3;i++){
//pat=lettere; //error
pat=articoli[1].Nome; //error
}
}
# include <conio.h>
# include <stdio.h>
struct Pate {
char Nome[20];
};
main()
{
char lettere[3] = { 'A','P','Z'};
Pate articoli[3]={{"gli"},{"un"},{"una"}};
Pate
preposizioni[10]={{"di"},{"a"},{"da"},{"in"},{"con"},{"su"},{"per"},{"tra"},
{"fra"}};
char text[5000],pat[100], te[1];
int no,count,pos[20],i;
clrscr();
cout<<"\n\nInsert text:";
gets(text);
cout<<"Insert one string:";
// gets(pat);
for (i=0;i<3;i++){
//pat=lettere; //error
pat=articoli[1].Nome; //error
}
}