Search found 60 matches

by Byteraver
October 29th, 2019, 8:35 am
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

Hi again! Sorry for the late reply but I was not home yesterday night. Thanks, once again, for your elaborate answer. I shall try to take your good advice to heart, even though I know old habits die hard, whether they be good or bad :) Don't kill me if you notice a relapse occasionally ;) Also, refa...
by Byteraver
October 27th, 2019, 2:52 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

So I changed the code of the trimTrailingSpaces and created a function: std::string& XMLFile::trimTrailingSpaces( std::string& trimStr ) { for (;;) { size_t strLen = trimStr.length(); if ( strLen == 0 ) break; strLen --; if ( trimStr[strLen ] != ' ' ) break; trimStr.erase( strLen ); } return trimStr...
by Byteraver
October 27th, 2019, 11:30 am
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

Hi albinopapa! Thanks again for your considerable effort in trying to get me on track, it is most helpful and appreciated. You are a good teacher :) Sorry I write and ask so much, but I just enjoy discussing these topics so much :) :) About your other remarks: Prefer using the STL algorithms over ra...
by Byteraver
October 27th, 2019, 10:02 am
Forum: Everything
Topic: Visual Studio 2015 Community Download
Replies: 3
Views: 1841

Re: Visual Studio 2015 Community Download

Hi, my VS2015 code compiled right out of the box in VS2019 that I downloaded yesterday. I'd say go for it, make sure you install the C++ and the DirectX components (I did not install anything else) and you should be ready for battle.
by Byteraver
October 26th, 2019, 6:56 pm
Forum: Everything
Topic: Functional Programming
Replies: 5
Views: 2674

Functional Programming

Hello! I just watched a talk (https://www.youtube.com/watch?v=0if71HOyVjY) about Functional Programming (got sidetracked by youtube again :oops: ) and I was wondering, are these languages used to make production - environment ready programs? Or is it just a thought experiment? Because i can't imagin...
by Byteraver
October 26th, 2019, 12:24 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

Hi albinopapa! (answer to your initial code-review answer in this post, part I: ) First of all, your version of the ini reader code looks way more elegant ;) Thank you for that. I especially like that it is shorter. I started to look at your comments, and I have a lot of questions. If you feel incli...
by Byteraver
October 26th, 2019, 12:20 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

I had a second look at the way you rewrote the for loop and I think I still like my version more - no offense. It needs more lines of code, but I feel it is easy to understand. It is slow though, since the "endMarker.resize( l )" is inside the loop, and I suppose this is costly. In practice however ...
by Byteraver
October 26th, 2019, 10:21 am
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

Hi again albinopapa! (I will here answer your post on the XML parser and answer your previous posts later) About the loops: I know about the different loops in C++, how they work etc. It is just that I read somewhere that sticking to one style of loop makes the code clearer / simpler (for the reader...
by Byteraver
October 25th, 2019, 5:03 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

Hi albinopapa :) Now that you mention it, my first programming experiments were also in qBasic (the free version of QuickBasic, without the "compiler"). My experiments were so bad I didn't consider it programming ;) CppCon videos are great, although I wouldn't pretend I understand them, my level of ...
by Byteraver
October 24th, 2019, 7:16 pm
Forum: Everything
Topic: Cracktro :)
Replies: 54
Views: 30523

Re: Cracktro :)

Hey albinopapa, thank you SO, SO much for going through my code and providing me with such valuable feedback. I will take my time to study your elaborate response in detail. I always felt it would be completely unreasonable to ask a more experienced programmer to go through my code and comment on my...