Top new questions this week:
|
One of my university assignments asked us to create a program using struct in order to create a simple event scheduler. This program is for a single day only, not multiple days.
Sample Input / ...
|
This is a follow up to this post I uploaded a few days back on my alternative account about a circular buffer in C. I'm confident that I fixed most of the warnings and even added an iterator.
...
|
(See the next iteration.)
I have subclassed java.util.ArrayList in order to be able to "rotate" it in constant time simply by moving a finger index. See what I have:
RotableList.java
package ...
|
I'm creating a console app that has the purpose to teach you how to use C# bitwise operators. I have several classes which contain info about the different operators and I instantiate/add them in the ...
|
I am trying to learn AngularJS as a start to my revival of learning, I think that I am getting the hang of it so far, but would like to see what I can do differently with some super simple ...
|
In preparing this answer, one of the components was an algorithm to rearrange a sorted array in a particular way. To put it succinctly, here's the problem description:
Given an array \$A\$ with ...
|
Create a class diagram and Java code for the following system and
scenario, taking into account the possibility of future extensions.
The system is a command line utility that prints a short ...
|
Greatest hits from previous weeks:
|
Is this a good approach or is there some other solution that I am not aware of?
//C++ program to count number of words in text file
#include<fstream>
#include<iostream>
...
|
Any suggestions?
#include<iostream>
using namespace std;
class node
{
friend class linked;
private:
int data;
public:
node ...
|
Can you answer these?
|
Consider a 3x3 square surrounding a cell (marked @) on a grid:
0 1 1
1 @ 0
1 1 1
I need to find the number of groups of open cells (ones) surrounding the center cell. In the above example, there ...
|
This is code that handles pushing data to an analytics API, and IMO it feels too much like Java.
logActivity is a method that uses Dispatch to POST the data to this API. I am worried that an ...
|
I'm making an image viewer and before I continue development I want to make sure I haven't done anything bad. In particular, I was wondering if my error handling is sane.
Most of the code is ...
|