1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

using STRCMPI

Discussion in 'C++' started by khix, Sep 14, 2010.

  1. khix

    khix New Member

    Joined:
    Sep 13, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    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]
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    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
     

Share This Page