Top new questions this week:
|
I wrote this cat clone in C++. It does two things prints the content of file if only one file is given. concatenate and print contents of file if more than one …
|
For a recent project of mine I had to do read input from the console in pure C with no external libraries (in other words, code I’ve written by myself). I don’t like the standard formatted input such …
|
The tricky thing was keeping copies of list iterators in a tree map and managing both together. I’m not handling invalid input cases (like popping an empty stack) in this code. I am following Google C+…
|
I have an ever growing switch case statement I plan on adding 3 more case statements to. Given an int, compare it to an enum, and call …
|
This class has a Log function that appends text to a log text file. It takes a format string and a variable amount of arguments, much like a …
|
I have a thread safe queue in my library c9y. It is generally used as a task queue in the task_pool class, but in can be used for any producer / consumer problem. queue.h …
|
I have a .NET 6 web API that does some requests to another third party API, this API has a token that expires after a few hours, so I want to cache this token and reuse in the requests. Here how I …
|
Greatest hits from previous weeks:
|
It is a basic calculator where the user inputs two numbers, and an operation and the program makes it into an equation and gets the answer. For example, if the user enters number 2 number 3 and tells …
|
As I’ve described in a StackOverflow question, I’m trying to fit a NumPy array into a certain range. Here is the solution I currently use: …
|
…
|
I am a self – taught coder, and have been learning Java / C# for the last 2 1/2 years (inconsistently). I have recently created a snake game in Java with the help of an online tutorial. I have …
|
…
|
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? …
|
To understand the concept, I implemented the stack operations using a linked list. Please review the code and tell me your suggestions. Node.java …
|
Can you answer these questions?
|
As part of a larger program, I’m trying to find the cleanest way to architecture my program to query a cosmos db and use its return values (dict objects) as easy to manipulate and maintain objects in …
|
When a user using a Retina display makes a screenshot and pastes it into the browser, the size of the image is twice the selected area. This is expected as a Retina display, but the pasted image …
|
First I would like to thank everyone for whatever help you may offer me. In full disclosure this is a project for a bootcamp class I have. My problem is, and I’ve asked them about this, that they aren’…
|