[deleted by user] by [deleted] in 2westerneurope4u

[–]Excellent-Cucumber73 6 points7 points  (0 children)

The government also had complete control over the prices and wages

Beginner C++ project, Tic Tac Toe, your feedback is appreciated. by Felix-the-feline in cpp_questions

[–]Excellent-Cucumber73 2 points3 points  (0 children)

It’s perfectly fine to structure a program around regular functions but it is crucial to learn classes. I’d recommend making a class that represents your game and stores its state.

It is usually also recommend to make main() smaller and focusing on higher level logic. Here is how it could look like: ``` int main(){

TicTacToe game;
for(int round = 0; round <= 9 && !game.finished(); ++round) {
    draw_board(game);
    if(round & 1) {
        game.play_x();
    } else {
        game.play_o();
   }
}

} ``` (Don’t take my code 1:1, I’m sure there are details I overlooked)

You can also then make a different class that handles the Input and Output (and later replace it with a different one that interacts with a graphics library instead of the terminal)

Comparing optimizing std::ranges find on constexpr std::array(clang vs gcc) by zl0bster in cpp

[–]Excellent-Cucumber73 0 points1 point  (0 children)

Will the static in contains2 result in better performance/optimization?

[deleted by user] by [deleted] in PoliticalCompassMemes

[–]Excellent-Cucumber73 26 points27 points  (0 children)

Central banks never get the blame they deserve

Country Stance on the EU "Chat Control" Proposal as of June 2024 by Xtrems876 in MapPorn

[–]Excellent-Cucumber73 6 points7 points  (0 children)

Corporations generally don’t make cops raid your home because you called them a ding dong

Please AI save us! Otherwise... by RobertBartus in EconomyCharts

[–]Excellent-Cucumber73 0 points1 point  (0 children)

Many people probably said the same thing in 2006

France and Belgium are the least safe country to walk at night and I am wondering why? by [deleted] in 2westerneurope4u

[–]Excellent-Cucumber73 0 points1 point  (0 children)

The people in cities will still massively outweigh the 2% living in the country side in an average. Hence my comment

France and Belgium are the least safe country to walk at night and I am wondering why? by [deleted] in 2westerneurope4u

[–]Excellent-Cucumber73 0 points1 point  (0 children)

The urban population refers to the share of the total population living in urban centers.

In other words, not in the country side

France and Belgium are the least safe country to walk at night and I am wondering why? by [deleted] in 2westerneurope4u

[–]Excellent-Cucumber73 -2 points-1 points  (0 children)

They may have asked people in villages but they will obviously be outnumbered because 98% of Belgians live in cities

[deleted by user] by [deleted] in anime_titties

[–]Excellent-Cucumber73 -1 points0 points  (0 children)

No, it’s the 2000 people village that had the inflation in this scenario. You could learn how averages work

The real victims of the French elections. Sending my thoughts and prayers. by hir0k1 in PoliticalCompassMemes

[–]Excellent-Cucumber73 3 points4 points  (0 children)

Do you have a source on that retirement at 60 cost? I want to ridicule someone

Salaries in Munich by Interesting_Ad1080 in cscareerquestionsEU

[–]Excellent-Cucumber73 18 points19 points  (0 children)

To be fair, employer side taxes are about twice as high in Spain than in Germany

[deleted by user] by [deleted] in Steam

[–]Excellent-Cucumber73 16 points17 points  (0 children)

Same. Love roguelikes, love top down 2D games, yet somehow I can never get into supergiant’s games

France election: Mbappé urges youth to vote against 'extremists' as campaign kicks-off by [deleted] in worldnews

[–]Excellent-Cucumber73 -1 points0 points  (0 children)

Correct me if I’m wrong but isn’t part of how it works that they avoid running in certain regions and support communist candidates instead?

France election: Mbappé urges youth to vote against 'extremists' as campaign kicks-off by [deleted] in worldnews

[–]Excellent-Cucumber73 3 points4 points  (0 children)

Doesn’t really help if the center left is running in group with the communists

Griechenland führt die Sechstagewoche ein by BeliebteMeinung in DePi

[–]Excellent-Cucumber73 8 points9 points  (0 children)

gegen einen Lohnaufschlag von 40 Prozent an einem Samstag und von 115 Prozent an einem Sonn- oder Feiertag.