void course::getDetails()
{
	int check_Branch,k=0,check=0;
	int u=0,a=6,y=2;
	login lod;
	lod.gotoxy(a+8,y+6);
	cout<<"Branch Code:0.CSE   1.COM   2.MULTIMEDIA   3.EEE";
	lod.gotoxy(a+14,y+8);
	cout<<"4.Mechatronic 5.AUTOMOBILE   6.EE";
	getbranch();
	getbranch_no();
	check_Branch=BranchExist();
	if(check_Branch==0)
	{
		getno_of_course();
		getcoursedetails();
	}
	else
	{
		cout<<"\n\tBRANCH ALREADY EXIST\n\t";
		system("pause");
		coursemenu();
	}

}
예제 #2
0
파일: 3.main.c 프로젝트: dank101/4.2BSD
structure()
	{
	VERT v, *head;

	if (progress)
		fprintf(stderr,"	getreach:\n");
	getreach();
	if (routerr) return;
	if (progress)
		fprintf(stderr,"	getflow:\n");
	getflow();
	if (progress)
		fprintf(stderr,"	getthen:\n");
	getthen(START);
	head = challoc(nodenum * sizeof(*head));
	for (v = 0; v < nodenum; ++v)
		head[v] = UNDEFINED;
	for (v = START; DEFINED(v); v = RSIB(v))
		fixhd(v,UNDEFINED,head);
			/* fixhd must be called before getloop so that
				it gets applied to IFVX which becomes NXT(w) for UNTVX w */
	if (progress)
		fprintf(stderr,"	getloop:\n");
	getloop();
	if (progress)
		fprintf(stderr,"	getbranch:\n");
	getbranch(head);
	chfree(head,nodenum * sizeof(*head));
	head = 0;
	}
void course::getbranch()
{
	int c=0;
	string br;
	while(1)
	{
		br="";
		cout<<"\n\nEnter Char_Branch_Name name of level "<<level<<": ";
		cin>>Char_Branch_Name;
		br=(string)Char_Branch_Name;
		transform(br.begin(), br.end(), br.begin(),::toupper);
		if(br.compare("CSE")==0 ||br.compare("COM")==0||br.compare("MULTIMEDIA")==0||br.compare("EEE")==0||br.compare("MECHATRONIC")==0||br.compare("AUTOMOBILE")==0||br.compare("EE")==0)
		{
			c=1;
			break;
		}
		else
		{
			c=0;
			getbranch();
		}
	}
}