本文整理汇总了C++中Course::GetNumber方法的典型用法代码示例。如果您正苦于以下问题:C++ Course::GetNumber方法的具体用法?C++ Course::GetNumber怎么用?C++ Course::GetNumber使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Course
的用法示例。
在下文中一共展示了Course::GetNumber方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TeaCouDelete
void TeaCouDelete(void)
{
Course* course;
int Number;
int again;
do
{
system("cls");
cin.clear();
cin.sync();
cout<<strTeaCD1;
INPUT_INT_L(Number,1);
course=data.CouSearch(Number);
if(course==NULL)
cout<<strTeaCDF;
else
{
cout<<strTeaCDConfirm1<<course->GetName()<<strTeaCDConfirm2<<course->GetNumber();
cout<<strTeaCDConfirm3<<course->GetCredit()<<strTeaCDConfirm4;
int i;
INPUT_INT_LU(i,0,1);
if(i)
{
data.DelCou(Number);
cout<<strTeaCDS;
}
}
cout<<strTeaCD2;
INPUT_INT_LU(again,0,1);
}while(again);
return;
}
示例2: TeaCouChange
void TeaCouChange(void)
{
Course* course;
int Number;
int again;
do
{
system("cls");
cin.clear();
cin.sync();
cout<<strTeaCC1;
INPUT_INT_L(Number,1);
course=data.CouSearch(Number);
if(course==NULL)
cout<<strTeaCCF;
else
{
cout<<strTeaCCConfirm1<<course->GetName()<<strTeaCCConfirm2<<course->GetNumber();
cout<<strTeaCCConfirm3<<course->GetCredit()<<strTeaCCConfirm4;
int i;
INPUT_INT_LU(i,0,1);
if(i)
{
int credit;
cout<<strTeaCC2;
INPUT_INT_L(credit,0);
course->SetCredit(credit);
cout<<strTeaCCS;
}
}
cout<<strTeaCC3;
INPUT_INT_LU(again,0,1);
}while(again);
return;
}