Top new questions this week:
|
This is a C++ program which outputs a Mandelbrot fractal image in a graphics window and lets the user zoom and pan around the image, generating a new image each time the user does so. I'm using SFML ...
|
I Have written this program to add workers into a list and print them. I'd like a review of this. I'm especially concerned if the method Addworker should be inside the class or in the main program.
...
|
Here is what I have to do:
Write a function scramble(str1,str2) that returns true if a portion of str1 characters can be rearranged to match str2, otherwise returns false.
For example:
...
|
The program needs to find all contiguous sublists of numbers where the number of occurrences of every member in the contiguous sublist is divisible by 2.
The first line of input is N (the number of ...
|
This code outputs the smallest number with more divisors than the input:
from operator import mul
from math import sqrt, ceil
def next_prime_factor(n):
if n % 2 == 0:
return 2
for x ...
|
Reviewing code doesn't necessarily require actually building it, but it's often helpful to do so in order to evaluate fully. I usually create a CMake project and build from there. Since we're all ...
|
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 ...
|
Greatest hits from previous weeks:
|
This is my version of the Snake game, written in C++. How could it be improved, and what general advice would be useful for future projects?
#include <iostream>
#include <conio.h>
void ...
|
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?
String sample = "hello world";
char arraysample[] = sample.toCharArray();
int ...
|
Can you answer these?
|
I have managed to build an inheritance hierarchy for shape class object and I am wondering if there is a better solution to combine the following 2 hierarchies.
To begin, I have a 4 shapes classes ...
|
I just wrote a simple script cmd to hide private folders by combining several scripts from the Internet. Can anyone give me suggestions for improvement?
This batch file uses a password hidden by ...
|
I've just written a ping application in Go. I'm proud of the logic, but I want some help to refactor it. The program has too much code in main, and pulling functions out of it requires a lot of ...
|