C++ Monastery

The most interesting and useful programming tasks, in C++.

Wednesday, May 1, 2019

EvenOdd PrimeComposite PositiveNegative Factors

›
It can be useful to know all sorts of details about a number in a program. This C++ code determines if a number is Positive or Negative, Ev...

Command Line Arguments Revamped

›
Revisiting the Command Line Argument article, there are some more enhancements can be made to the longevity of the code. For example, we ca...
Friday, January 25, 2013

Command Line Arguments

›
The ability to accept command line arguments is useful if a program is to have a developer mode or debug mode that wouldn't be suitable...
1 comment:
Friday, January 18, 2013

Random Numbers Using Rand ( )

›
Having the ability to generate random numbers in a program can be very useful, whether it's to make a simple number guessing game or to...
Friday, January 11, 2013

Dividing and Centering Text Output

›
Dividing and Centering Text Output Sometimes we need text output to the console window or a file to be centered and or preceeded by a ...
Friday, January 4, 2013

Console Window - Colored Text

›
Colored Text If you've ever wanted to use colors in a console window, as in having a colorful text and backgrounds, then are two pr...
Friday, December 28, 2012

Console Window - Christmas Tree

›
Console Window Christmas Tree As a festive programming challenge, programmers are tasked with creating a Christmas Tree out of asterisks...
Home
View web version
Powered by Blogger.