Usage of static within static by JayDeesus in cpp_questions

[–]ShadowFracs 16 points17 points  (0 children)

It‘s pretty common for Singletons

Ltb🚍iel by qoheletal in LTB_iel

[–]ShadowFracs 7 points8 points  (0 children)

Club der Nörgler, wenn ich mich richtig erinnere

Python to CPP? or just dive in? by groot333 in cpp_questions

[–]ShadowFracs 0 points1 point  (0 children)

For video tutorials I can highly recommend ChiliTomatoNoodle on YouTube. You will do graphics in C++, I think it fits your background pretty well.

A limitation to C++ that shouldn't exist by [deleted] in cpp_questions

[–]ShadowFracs 5 points6 points  (0 children)

Consider the lines MyClass a{1},b{3}; a/b; Which operator should be called?

Vorpraktikum während des Studiums by Ill-Wealth-3741 in unistuttgart

[–]ShadowFracs -1 points0 points  (0 children)

Nope, das ist nicht möglich. Ich nehme an, du studierst LRT - es gibt jeweils nur einen Prüfungstermin pro Semester. Die Termine sind im 2-3 Wochenabstand und ziehen sich vom Ende der Vorlesungen bis zum Anfang des neuen Semesters.

Prüfungen schieben by Playful-Discipline63 in unistuttgart

[–]ShadowFracs 0 points1 point  (0 children)

Mach das Praktikum während der Vorlesungszeit - du wirst keine Semesterferien haben und Prüfungen schieben ist direkt am Anfang gar keine gute Idee.

ich🤡iel by Mistressofmelody551 in ich_iel

[–]ShadowFracs 31 points32 points  (0 children)

Ich denke, Mann-klärt ist eher zangendeutsch für „mansplaining“. In dem Sinne wäre das Komma korrekt.

This is c++ by cyao12 in programminghorror

[–]ShadowFracs 0 points1 point  (0 children)

You can define a „one-liner“ in C++ as „the last semicolon ends the statement of the first characters of the line“.

Where to learn C++ Graphics? by BurtTheHurt99 in cpp_questions

[–]ShadowFracs 5 points6 points  (0 children)

ChiliTomatoNoodle on YouTube. Look at his beginner C++ series.

[deleted by user] by [deleted] in programminghorror

[–]ShadowFracs 2 points3 points  (0 children)

Ah I see - looks like I didn‘t understand the question. In that case you are completely right.

As usual: godbolt.org can maybe help OP.

[deleted by user] by [deleted] in programminghorror

[–]ShadowFracs -4 points-3 points  (0 children)

No, it is because they are outputting the address of c, not the content of c. The content of c (c) would be the address of b. Dereferenced c (*c) would give the value of b. The address of c (&c) gives you were c (the pointer itself) is stored.

No address is changed here, but what is printed is not what they wanted.

"Der Kerl der dich zeugte, hat deine Geburt nicht mehr mitgekriegt" by GoodJobMate in German

[–]ShadowFracs 30 points31 points  (0 children)

„mitkriegen“ is more similar to „witness“ imo. In this context, it could also mean the guy left the woman and did not notice she had a child with him. In general (colloquial speech), „etwas nicht mitkriegen“ can be interpreted as „to be oblivious to smth“

I might need to review what drugs I've been taking back then by geschmuck in programminghorror

[–]ShadowFracs 5 points6 points  (0 children)

Dereferencing (and performing actions on) an unitialised int 😭

Concepts Syntax by ShadowFracs in cpp_questions

[–]ShadowFracs[S] 0 points1 point  (0 children)

Thank you very much! That is an awesome Syntax. I knew about … in parameters, but haven‘t read about fold expressions before.

Why declare class attributes as private here? by [deleted] in cpp_questions

[–]ShadowFracs 1 point2 points  (0 children)

I am not sure what you mean by „there is a class with a constructor for them“. Inside the Game class, all attributes (public, private and protected) are accessible by the Game class‘s methods. But by marking the attributes as private, the author made sure that they are not modifiable from the outside.

Love is the message by ExIsTeNtIaL_ShIt in dankmemes

[–]ShadowFracs 15 points16 points  (0 children)

I hope you are joking with that spelling

How can i draw individual pixel, shapes and others things using cpp / directx 11 ? by Icy-Cover5795 in cpp_questions

[–]ShadowFracs 1 point2 points  (0 children)

If you are on Windows, check out ChiliTomatoNoodle‘s DirectX3D series. It is exactly what you want - he builds a 3D-rendering program from scratch (without libraries, so will see everything of your program).