Ultimate++
Ultimate++ is een multiplatformtoolkit waarmee getracht wordt de complexiteit van de broncode te verminderen door het toepassen van vele functies uit C++.
Ultimate++
| ||||
Ontwikkelaar | Ultimate++ team[1] | |||
Recentste versie | 2017.2[2] (14 december 2017) | |||
Status | Actief | |||
Besturingssysteem | Windows, Linux en Unix | |||
Geschreven in | C++ | |||
Categorie | Toolkit | |||
Licentie | BSD-licentie | |||
Versiebeheer | sourceforge.net | |||
Website | (en) Projectpagina | |||
|
Hello World
Dit voorbeeld maakt een U++ programma met een "Hello world!"-knop:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class MyApp : public TopWindow {
typedef MyApp CLASSNAME;
public:
MyApp() {
Title("Hello world");
button.SetLabel("Hello world!");
button <<= THISBACK(Click);
Add(button.HSizePos(100, 100).VSizePos(100, 100));
}
private:
void Click() {
if(PromptYesNo("Button was clicked. Do you want to quit?"))
Break();
}
Button button;
};
GUI_APP_MAIN
{
MyApp().Run();
}
Zie ook
This article is issued from
Wikipedia.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.