Top new questions this week:
|
I followed the Beej’s Guide to Network Programming. The program acts like a multi-user chat server. One connects and sends a message to the server, which is forwarded to all that are connected. There’…
|
I have a program with these two methods. One method to import a set of data from a CSV within the given time period and store them in a dictionary. Here the data in CSV file is stored in following …
|
I’m a newb. I learned some C in high school, and using that to learn C++. I really didn’t understand the use of OO, but I had a major enlightenment while working on this simple piece of code. I have …
|
Description Imagine a space like the arcade game Asteroids where everything wraps around right to left and bottom to top – effectively coordinates on a flat torus. The diagram shows an example of two …
|
I just want feedback regarding C++ coding style and if in any way I can optimize my code (e.g. to use a different data structure). I’m only trying to use up to C++ 14 standard code. Any other …
|
My attempt at Exercise 1-21 in the The C Programming Language book written by Brian Kernighan and Dennis Ritchie. Exercise …
|
Introduction So, I recently completed a chess game with a GUI in Python, using Pygame. Upon research, I learned that Pygame is built on SDL, and since I wanted to practice C++ more, I decided to code …
|
Greatest hits from previous weeks:
|
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’ve recently stared learning C++ so I’m new to all of it. I’ve got my fourth “software” under development. Could someone have a look through and give me some constructive criticism on what should I …
|
How can I improve this game? …
|
Can anything be improved in this code? …
|
I know there is a simpler way of doing this, but I just really can’t think of it right now. Can you please help me out? …
|
I want to use a better syntax than nested foreach statements to overwrite the initial list with items from the second list. In the code below: I want to overwrite …
|
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: …
|
Can you answer these questions?
|
Basically below code is taking first 7 tabs from my current sheet and pasting them as values in a blank excel sheet with same tab names and saving them in a specific folder by filename I specified. …
|
I have devised my own version for a Goldbach verification project which uses sets to compare already sieved primes. My implementation also uses generators to “sieve a segment” since storing …
|
The macro below loops through column E in Sheet2 and finds matches in column Z of Sheet1. If a match is found it copies the value on the same row contained in column AA. It works ok but hangs when it …
|