void CWelcomeServiceSkel::welcomeUser_skel(NLNET::IModuleProxy *sender, const NLNET::CMessage &__message)
	{
		H_AUTO(CWelcomeServiceSkel_welcomeUser_WU);
		uint32	charId;
			nlRead(__message, serial, charId);
		std::string	userName;
			nlRead(__message, serial, userName);
		NLNET::CLoginCookie	cookie;
			nlRead(__message, serial, cookie);
		std::string	priviledge;
			nlRead(__message, serial, priviledge);
		std::string	exPriviledge;
			nlRead(__message, serial, exPriviledge);
		WS::TUserRole	mode;
			nlRead(__message, serial, mode);
		uint32	instanceId;
			nlRead(__message, serial, instanceId);
		welcomeUser(sender, charId, userName, cookie, priviledge, exPriviledge, mode, instanceId);
	}
Beispiel #2
0
void myMain(){
    
    welcomeUser();
	inputYear();
	inputWeight();
	computeFee(year, weight);
    reportFee(weight, weightClass, fee);
    
    char yesOrNo[100];
	printf("Would you like to calculate another? y/n ");
	scanf("%s", yesOrNo);
    
	if (strncmp(yesOrNo, "y", 2) == 0) {
		printf("\n");
		myMain();
	}
    
	if (strncmp(yesOrNo, "n", 2) == 0) {
		printf("Good bye!");
	}

}