本文整理汇总了C++中Course::getTerm方法的典型用法代码示例。如果您正苦于以下问题:C++ Course::getTerm方法的具体用法?C++ Course::getTerm怎么用?C++ Course::getTerm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Course
的用法示例。
在下文中一共展示了Course::getTerm方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: fillInTA
void UnderGradAppPage::fillInTA(WindowApp* theApp) {
if(theApp->uGradAppPage->form->rTA || theApp->editUApp->rTA) {
theApp->uGradAppPage->relatedTA = new Queue<Course>(*(theApp->editUApp->relatedTAPositions));
cout<<theApp->uGradAppPage->relatedTA->size() <<endl;
Course *course = theApp->uGradAppPage->relatedTA->popFront();
stringstream ss;
ss << course->getYear();
string year = ss.str();
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_year2), year.c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_relatedCourse2), course->getTitle().c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_term2), course->getTerm().c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_supervisor), course->getSupervisor().c_str());
}
}
示例2: fillInRelated
void UnderGradAppPage::fillInRelated(WindowApp* theApp) {
if(theApp->uGradAppPage->form->rCourses || theApp->editUApp->rCourses) { //this will check if the queue exists
theApp->uGradAppPage->relatedCourse = new Queue<Course>(*(theApp->editUApp->relatedCourses));
cout<<theApp->uGradAppPage->relatedCourse->size() <<endl;
Course *course = theApp->uGradAppPage->relatedCourse->popFront();
stringstream ss;
ss << course->getYear();
string year = ss.str();
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_year1), year.c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_relatedCourse1), course->getTitle().c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_term1), course->getTerm().c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_finalGrade), course->getFinal().c_str());
}
}
示例3: editNextRelated
void UnderGradAppPage::editNextRelated(WindowApp *theApp) {
if(!theApp->uGradAppPage->relatedTA->isEmpty()) {
Course *course = theApp->uGradAppPage->relatedTA->popFront();
stringstream ss;
ss << course->getYear();
string year = ss.str();
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_year2), year.c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_relatedCourse2), course->getTitle().c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_term2), course->getTerm().c_str());
gtk_entry_set_text(GTK_ENTRY(theApp->uGradAppPage->form->ei_supervisor), course->getSupervisor().c_str());
}
else {
cout << "thing is empty?" << endl;
}
}