Questions tagged [console]
Use this tag for programs that interact with their user by means of a character-based console or terminal
843
questions
3
votes
1
answer
2k
views
Calculator parsing S-expressions
The following program is supposed to be a (command line) calculator that parses expression following syntax similar to Lisp's S-expressions.
Some examples:
$ echo "(+ 5 5)" | ./a.out
10....
13
votes
1
answer
19k
views
Command-line noughts and crosses
I've just got a Raspberry Pi, so I thought I'd try my hand at some Python. This is my first ever Python program (hurrah!).
It's a very simple command-line implementation of noughts and crosses. The ...
3
votes
3
answers
8k
views
Asynchronous SSLSTREAM
Recently I have written an SslStream class asynchronously authenticate clients and receive message from them. I still would like anyone to suggest improvements for ...
1
vote
2
answers
710
views
Is my WriteConsole solution correct?
Here is the book question:
Modify the CatFile function in the program so that it uses
WriteConsole rather than ...
8
votes
3
answers
10k
views
Console calculator
I am a newbie programmer learning some C++. One of the exercises in my book asked me to write a basic console calculator that takes 2 numbers and an operation as input. I have done so and the program ...
3
votes
3
answers
765
views
Simple hashing code with excessive conditional statements
Any thoughts on my code? It's a simple hashing code that runs from the command line.
There just appears to be a lot of condition if / ...
5
votes
1
answer
225
views
Job queue system
I'm doing a side project at work and I consider it as a learning opportunity more than work itself, but it does hold a purpose if I can complete it. Anyway, I'll post the code, what it actually does ...
1
vote
1
answer
4k
views
Moving a game character around the screen
I'm a newbie to Python, and I was wondering whether anyone could give me any pointers on improving the following code:
...
1
vote
1
answer
115
views
Swing / Terminal console drop-in
How could this be improved style-wise (if this isn't good enough) when the need is just to have a console replacement for PrintWriter.format() with backwards ...
3
votes
3
answers
2k
views
Creating students and instructors
It's simple. Person is a superclass. Student and Instructor are its subclasses. The program ...
3
votes
2
answers
3k
views
An object-oriented student record system
I'm after a collection of opinions regarding cohesion and coupling with my application to improve OO programming.
Control Class - Populates test data and calls main menu
...
2
votes
1
answer
308
views
Wrapper functions for terminal capabilities
I've prepared a small C interface so the rest of my program can access relevant system functions. I am not a C programmer, though - just C++ and D, mainly. I want to make sure that everything here ...
6
votes
2
answers
300
views
Determining which command line arguments are numeric
I am working on using STL and in general safe C++ practices. Instead of posting large samples of code I am working with a small sample to catch problems before I move onto larger ones.
How do you ...
0
votes
2
answers
2k
views
Command line tool for extracting, searching, and converting
I just completed my first real application (command line app). It's simple, but I had no prior knowledge of Python. Everything was hit and miss, with many Python books and help from those in this ...
15
votes
3
answers
14k
views
Simple text-to-binary converter written in C++
I am learning C++ on my own and was hoping for some feedback on this simple text-to-binary converter. The program runs and I haven't encountered any errors with it yet. Any input is welcome.
...