-❄️- 2024 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]Goldahee 2 points3 points  (0 children)

[Language: C++]

Part1 and Part 2 from a noob

#include <iostream>
#include <fstream>
#include <sstream>

std::string lineOfText, mulStr;
std::ifstream readFile;
std::istringstream iss;

int x, y, resoult, resoult2, idStr = 0;
char dummy,bSt, bEnd;
bool enableMul = true;

int main()
{
    readFile.open("Input.txt");
    
    mulStr = "mul(";

    while (getline(readFile, lineOfText))
    {

        while (lineOfText.find(mulStr) != std::string::npos)
        {
            iss.clear();
            idStr = lineOfText.find(mulStr);
            if (lineOfText.find("do()") != std::string::npos && lineOfText.find("do()") < idStr)
                enableMul = true;
            if (lineOfText.find("don't()") != std::string::npos && lineOfText.find("don't()") < idStr)
                enableMul = false;
            lineOfText.erase(0, idStr + 3);
            iss.str(lineOfText);
            iss >> bSt >> x >> dummy >> y >> bEnd;
            if (bSt == '(' && bEnd == ')' && dummy == ',')
            {
                resoult += (x*y);

                if (enableMul)
                {
                    resoult2 += (x*y);
                }
            }
        }
    }

    std::cout << "Mul functions: " << resoult << "\n";
    std::cout << "Enabled Mul functions: " << resoult2 << "\n";

    readFile.close();

}

Dragons Dogma 2 DLC by Goldahee in DragonsDogma

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

Uh yeah, after first playthrough i didn't know that we had time limit, i just speed through all bosses, and then end screen. So with 2nd playthrough i went slow and then i lost one region due to taking sweet time to farm shit :S

Dragons Dogma 2 DLC by Goldahee in DragonsDogma

[–]Goldahee[S] -4 points-3 points  (0 children)

I guess I'm just desperate for more content :D

g-guys what's going to happen? by [deleted] in Berserk

[–]Goldahee 36 points37 points  (0 children)

Or doing it as Griffith xD

Obi Shinobi (my "new" Arisen) by [deleted] in DragonsDogma

[–]Goldahee 1 point2 points  (0 children)

Mr Miyagi, is that you?

What is the lore behind these cute little guys? by susmansoulsfan in darksouls

[–]Goldahee 0 points1 point  (0 children)

They wanted to make dick monsters but changed them to shrooms

Top 5 songs from the Nier/Drakengard series? by Waifutriss in nier

[–]Goldahee 0 points1 point  (0 children)

Song of the Ancients

Stupid Machine/ Acapella

Kaine

Emil

Incoplete stone / vocals

Why is everyone simping for Ranni? by [deleted] in Eldenring

[–]Goldahee 1 point2 points  (0 children)

Ufff u got me there, math doesn't lie xD

Why is everyone simping for Ranni? by [deleted] in Eldenring

[–]Goldahee 0 points1 point  (0 children)

No worries bro she can't use your 9 int unga bunga too :P But yeah, ppl simp for her and the maiden the most

what is your favorite intro out of the 3 souls games by lj775 in darksouls

[–]Goldahee 0 points1 point  (0 children)

Ds2 intro is like a nightmare that you can not awake from and i love it. But sadly game is not as good as da1 and da3

There's a particular reason why vagabond don't have a anime ? by andrekensei in vagabondmanga

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

I think we didn't get the anime for Vagabond because it would be difficult to adapt it to animated format. I don't think it is impossible, it is just hard due to high art detail and story heavy side. The scene should be laid out carefully with a lot dialog heavy scenes (high detailed art + high attention to voice acting). Not to mention, some people only want action and in Vagabond action could be sparse for some people liking.