Hey guys I am having a problem this isn't working what's up?Code:scanf("%s",&data); while ((fgets(test_line,512,eoftest))!=NULL) { if(Contactos[z].data==data) { printf("test"); } z++; }
I have tested the data with a printf before the if and I have tested the z with a printf as well and I have tested the Contactos[z].data with a printf
The results of my testes are Contactos[1].data=27.05.88
data=27.05.88
z=0,1,2,3,4
why doesn't it write what I ask it to in the printf
This is: test. Contactos[1].data is the same as data shouldn't it be printing test??



LinkBack URL
About LinkBacks



