QUOTE(lenoy @ 5 Mar, 2008 - 02:00 AM)

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define MAX 10
//#include <
//#include <
//#include <
void menu(void);
void code_Change();
int main()
{
char logId[MAX];
char codeChange[MAX]={1};//this line is a temporary intializer.
printf("Welcome to SouthCoast Serenity Inn database.\n");
printf("Please Enter Security Identification code to log in.\n");
gets(logId);
while(logId[MAX]!=0)
{
if(logId==codeChange)
{
printf("Password verification correct.\n");
menu();
}
else
printf("Please re-enter password.\n");
gets(logId);
}
system("pause");
return 0;
}
void menu(void)
{
printf("please enter option\n");
}
QUOTE(no2pencil @ 5 Mar, 2008 - 02:34 AM)

CODE
gets(logId);
while(logId!=0)
You declare it as a char, you gather it with gets... but then you test against an integer...?
sholud i change logId to logId[MAX] ......how do i change logId to a character