hi......... .....i made a program that use a STRCMPI but i'm clueless why it doesn't work....can you please tell me why...? ...here's my code..... Code: #include<iostream.h> #include<conio.h> #include<string.h> #include<fstream.h> main() { char en[10],code[10],fname[20],lname[15],pos[30]; clrscr(); ifstream in("F:midterm.txt"); in>>code>>fname>>lname>>pos; cout<<"Employee Number : "; cin>>en; if (strcmpi(code,e3n)==0) { cout<<"Employee Name : "<< fname<<lname<<endl; cout<<"Position : "<< pos<<endl; } in.close(); getch(); return 0; } thank you:phone:!!! God Bless:pleased:..!!! [xhik]
Use Code Blocks when posting code snippets in forum. Now I do not see e3n as variable even declared and so can you explain your code as to what you are trying to do