这是我制作tkinter msgbox的代码:
template<class ForwardIt>
ForwardIt max_element(ForwardIt first, ForwardIt last)
{
if (first == last) return last; // The range is empty
ForwardIt largest = first; // <-- Start with the first one
++first;
for (; first != last; ++first) {
if (*largest < *first) {
largest = first;
}
}
return largest;
}
好的-这是我的代码。当我运行Programm时,会出现以下结果:
也将导入普通的tkinter窗口。有任何想法吗?预先感谢!