If you find that substr is broken you can just use a function. I don’t know why it breaks but it just broke for me. It probably is not efficient at all but at least it works all the time.
This program is a lot bigger than usual, so I decided to run it through itself. (tested without comments)
I was just so excited when I realized my program actually was going to work (with very minimal bugs considering I have no way to grab new lines as input) that is all. Probably coming before August. std::getline(std::cin, varname) this is very helpful for passing the no spaces limitation cin has. With spaces I can […]
I know my code isn’t perfectly optimized but I think c++ is slowed down a bit because I don’t know it as well. The calculations being used were meant to be CPU intensive i=6i=i^4i=i+11i=i%7(i stands for integer) These 4 operations were done 40000000 (40 million times) for each test and the python3 test was rounded […]
so make the function in the class look at the double todo, the double comes from the type of the function that the class function is calling. todo is basically an alias which is assigned the function. You can call the alias by using in this case put whatever in function_name and your parameters in […]
After asking a professional why this was happening it was apparent to me that all my hypotheses were wrong. I am tired so I will keep this short. Always assign your variables to a value upon creation or you will get random stuff. May or may not apply to just int/double/float I have not tested […]
I will not be writing any programs in c++ that use GUIs for a specific reason…I can not get a single one to work. I think it is not worth the 3+ days it would take me. So I will just use python GUIs instead (no pygame programs). I will still program in c++ but […]
This is the code I guess, the plugin is called CodeMirror. It has the option to run HTML code, but not c++ from what I can see. If you want to run this code then use the free repl code editor and compiler https://repl.it/languages/cpp11 It works very well, also hopefully I can release a new […]