Top new questions this week:
|
I’m new to Python and coded this spin-the-wheel game where the user can bet on each spin of the wheel and either double their money, 1.5x their money, lose their money or keep it. It all seems to be …
|
It’s sometimes fun to implement the exercises from K&R in C++. It’s certainly interesting to see what C++ makes easier and what’s still difficult. I’ve had a go at Exercise 1-14 in the second …
|
I’m developing a UCI chess engine and as part of my engine I need a position representation that stores the position of every piece on the board and all the information about the game, like castling …
|
Background I’ve provided two simple functions that I use to print a full path to the last modified file within a directory. I don’t code in bash frequently so I’m looking for a generic feedback on …
|
I made a GUI that can make a YouTube query and play the audio. It includes some basic functionalities like volume control, a time-scale, putting songs in waiting lists, shuffle, etc. I spent some …
|
This code seems to work fine but I am sure this reads very amateurish. I would appreciate your comments as to how to make this code more “professional”: …
|
Usually in C++, the language rules automatically widen types as necessary. For example, I can pass a pointer-to-derived in place of a pointer-to-base, and the same with references. There are …
|
Greatest hits from previous weeks:
|
Is this a good approach of designing a class or is there some other way that I am not aware of? Student.h specification file …
|
I wrote this script for a proof of concept JavaScript password cracker: …
|
Here is my code for removing duplicated values from an array. I think I tested it with the most possible cases. Any suggestions or bugs? …
|
I needed a way to remove elements on a List while iterating through it. Supposedly something like this (illegal code): …
|
…
|
I have created a method to check for null/empty values of class properties and if any null property is found I’m stopping the checking process and returning the result as true. I’ve used a solution …
|
Can the following code be simplified? I think that the program that I have created is very excessive and quite slow. The program runs fine, but I would like to understand if this could actually be …
|
Can you answer these questions?
|
I implemented a simple spell checker. Basically I have to user input an incorrect sentence or a word, then a number N, and then N correct words each on new line. The program has to output “…
|
Showable …
|
As a learning exercise and to do something productive, I decided to write a VBA macro for one of my “very old” FrontPage websites. Actually I’m in the process of trying to escape from …
|