English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

if i want to checks the employ in our company of some conditions like person name,age,marital status&salary if these conditions satisfied then it allows otherwise it asks me do u add in ur company or delete in 'C'Language

2006-08-29 01:32:05 · 1 answers · asked by ram 1 in Computers & Internet Programming & Design

1 answers

1. Include string.h header file into your C code.
2. The following is the code:

if(strlen(name) > 0 && age > 0 && maritalstatus != '' && sal > lowerlimit && sal < higherlimit)
{
............................// add the record here
}
else
{
printf("there was error in data entered. you would like to add?");
scanf("%c", &ans);
if(ans=='y')
// add the record
}

2006-08-29 01:52:38 · answer #1 · answered by Indian_Male 4 · 0 0

fedest.com, questions and answers