Top new questions this week:
|
By analogy with std::thread, I’ve written an RAII POSIX process: …
|
Description The code uses strtol() to convert text that represents a value in a given base into an integer. It takes three arguments from the command line, …
|
I have implemented some basic functionalities of task manager wherein whenever a new process is created it will be added to list of processes. Also if any process creates thread(s) it will get added …
|
I made a minimax algorithm for a connect 4 and I would like to optimize it to improve the calculation time. I have already done the classic optimization such as alpha beta pruning and a variable where …
|
This project was part of the JetBrains Academy Java course. The project was about implementing an Encryption program that uses either a simple Caesar Cipher (or) a Unicode Cipher depending on the …
|
For a recent project of mine I had to create various data structures in pure C with no external libraries (in other words, code I’ve written by myself), which lacks the templating and OOP capabilities …
|
I want to have some classes that would contain arrays of different sizes. I want this to be statically allocated because it is intended for an embedded system. The only good solution I can think of is …
|
Greatest hits from previous weeks:
|
In a Win Form I’m doing initial validation in the Form. So before saving data, I want to validate whether all the required fields are filled (Text Boxes) by the user. There are about 18 such Text …
|
I made this as a personal challenge. It seems to work fine as I can’t find any bugs and am happy with how it runs, but I am interested in what I should do to make the code more professional. I think …
|
If anything in the text isn’t a letter, ignore it and don’t return it. a being 1, b …
|
I have to reverse the string “He is the one” to “one the is He”. I have written some programs in Java but am looking for other best solutions. Suggest any possible ways to minimize the current …
|
I’d like to ask if either my JSON data is ill-conceived and whether how I solved it is particularly inefficient/plain stupid/typical. Given the following JSON data: …
|
I have recently written the following Pong game in Java: Pong class: …
|
…
|
Can you answer these questions?
|
Pillow is a popular library for handling images in Python. My code adds support for the QOI image format to Pillow. Aside from loading and saving QOI images, my goal was to write a streaming decoder …
|
I’ve been trying so hard to come up with a data model that works for mathematical expressions (like x^2 + 2x – y * 4, no equals sign) in Rust. It’s very different to other languages I’m most familiar …
|
I am writing the Restaurant Management homework which must be following the MVC pattern. My Menu model has two parts: Drink menu and Food menu. With Food menu, it separates into three different types …
|