upd: add exit on error in examples

This commit is contained in:
samsonium
2026-10-18 18:40:48 +03:00
parent dce64e8b4d
commit f0e641928d
6 changed files with 55 additions and 14 deletions
+4
View File
@@ -1,13 +1,17 @@
bool flag = true;
if (!flag)
{
printline("buhhh, flag is not true");
exit(1);
}
else if (2 + 2 >= 4)
{
printline ("two plus two is four");
}
else {
printline("gotcha");
exit(1);
}
{