Skip to main content

Command Palette

Search for a command to run...

Day 10/100 100 Days of Code

Info Hunter

Published
1 min read
Day 10/100 100 Days of Code
C

AKA Chris, is a software developer from Athens, Greece. He started programming with basic when he was very young. He lost interest in programming during school years but after an unsuccessful career in audio, he decided focus on what he really loves which is technology.

He loves working with older languages like C and wants to start programming electronics and microcontrollers because he wants to get into embedded systems programming.

I managed to find the root of the problem. The collection structure was not being created properly due to the following code:

size_t html_len = sizeof(html) - 1;

The size was not correct and I had to change it with the following:

std::string getHTML;

for (int i = 0; html[i] != '\0'; i++)
    {
        getHTML.push_back(html[i]);
    }

    size_t html_len = getHTML.length() - 1;

Now it works as it should! I still do not understand why it stopped working. I am glad that I managed to figure out a fix though. Now, the application runs

100 Days of Code

Part 10 of 50

100 days of code is a good initiative to go into hard mode and spend more time in programming. These 100 days will be focused on completing projects and research.

Up next

Day 11/100 100 days of Code

Info Hunter