Add tutorial READMEs and fix tutorial return codes
Add README.md files for moeo/tutorial/Lesson{1-4}, smp/tutorial/Lesson{1-4},
and mo/tutorial/Lesson9 — these tutorials had no documentation.
Fix return 1 → return 0 in 28 tutorial main() functions across mo/ and
smp/ that unconditionally returned failure status.
This commit is contained in:
parent
54a44a177f
commit
c1a44fd2a6
37 changed files with 371 additions and 30 deletions
|
|
@ -218,5 +218,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -247,5 +247,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -214,5 +214,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -192,5 +192,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -209,5 +209,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -214,5 +214,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -211,5 +211,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -196,5 +196,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -192,5 +192,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -193,5 +193,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -237,5 +237,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -228,5 +228,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -262,5 +262,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -226,5 +226,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -207,5 +207,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -222,5 +222,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -190,5 +190,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -188,5 +188,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -213,5 +213,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -211,5 +211,5 @@ int main(int argc, char **argv)
|
||||||
catch (exception& e) {
|
catch (exception& e) {
|
||||||
cout << "Exception: " << e.what() << '\n';
|
cout << "Exception: " << e.what() << '\n';
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue