예제 #1
0
void menu()
{
    int choice;
    printf("\n\n\t\t\tCUSTOMER ACCOUNT BANKING MANAGEMENT SYSTEM");
    printf("\n\n\n\t\t\t WELCOME TO THE MAIN MENU ");
    printf("\n\n\t\t1.Create new account\n\t\t2.Update information of existing account\n\t\t3.For transactions\n\t\t4.Check the details of existing account\n\t\t5.Removing existing account\n\t\t6.View customer's list\n\t\t7.Exit\n\n\n\n\n\t\t Enter your choice:");
    scanf("%d",&choice);

    
    switch(choice)
    {
        case 1:add_acc();
        break;
        case 2:mod_acc();
        break;
        case 3:transaction_acc();
        break;
        case 4:see();
        break;
        case 5:delete_acc();
        break;
        case 6:view_list();
        break;
        case 7:close();
        break;
	
    }
}
예제 #2
0
파일: smk2beta.c 프로젝트: LFDM/morpheus
trap_upper(char *res, char *s)
{
	char tmp[BUFSIZ];
	
	if( isupper(*s) ) {
		if( !cur_font || cur_font == GREEK ) {
			set_cur_font(ROMAN,res);
		}

		tmp[0] = '*';
		tmp[1] = tolower(*s);
		tmp[2] = 0;
		strcat(res,tmp);
		return;
	}
	
	if( islower(*s) ) {
		if( !cur_font || cur_font == ROMAN || cur_font == ITALIC ) {
			set_cur_font(GREEK,res);
		}
		tmp[0] = '*';
		tmp[1] = *s;
		tmp[2] = 0;
		strcat(res,tmp);
		return;
	}

	tmp[0] = 0;
	if( SMK_ALPHA(*s) ) {
		add_acc(tmp, *s - ALPHA_ACUTE + SPACE_ACUTE);
		strcat(tmp,"a");
	} else if( SMK_EPSILON(*s) ) {
		add_acc(tmp, *s - EPSILON_ACUTE + SPACE_ACUTE);
		strcat(tmp,"e");
	} else if( SMK_IOTA(*s) ) {
		add_acc(tmp, *s - IOTA_ACUTE + SPACE_ACUTE);
		strcat(tmp,"i");
	} else if( SMK_OMICRON(*s) ) {
		add_acc(tmp, *s - OMICRON_ACUTE + SPACE_ACUTE);
		strcat(tmp,"o");
	} else if( SMK_UPSILON(*s) ) {
		add_acc(tmp, *s - UPSILON_ACUTE + SPACE_ACUTE);
		strcat(tmp,"u");
	} else if( SMK_ETA(*s) ) {
		add_acc(tmp, *s - ETA_ACUTE + SPACE_ACUTE);
		strcat(tmp,"h");
	} else if( SMK_WMEGA(*s) ) {
		add_acc(tmp, *s - WMEGA_ACUTE + SPACE_ACUTE);
		strcat(tmp,"w");
	} else if( SMK_AISUB(*s) ) {
		add_acc(tmp, *s - AISUB_ACUTE + SPACE_ACUTE);
		strcat(tmp,"_");
		strcat(tmp,"a");
	} else if( SMK_EISUB(*s) ) {
		add_acc(tmp, *s - EISUB_ACUTE + SPACE_ACUTE);
		strcat(tmp,"_");
		strcat(tmp,"h");
	} else if( SMK_WISUB(*s) ) {
		add_acc(tmp, *s - WISUB_ACUTE + SPACE_ACUTE);
		strcat(tmp,"_");
		strcat(tmp,"w");
	}
	if( tmp[0] ) {
		if( ! cur_font || cur_font == ROMAN || cur_font == ITALIC )
			set_cur_font(GREEK,res);
		strcat(res,tmp);
	}
}