Subscribe to 10 GOTO 10        RSS Feed
- - - - -

Fun with Boost::proto

Icon Leave Comment
So I am working on a theoretical blog post on expressions based upon some of the little nuances that I have learned over the last week. Some neat stuff. In my research I came upon a neat little series of articles called "Expressive C++" by Eric Niebler...
- - - - -

Beginner Series: Finite State Machine

Icon 6 Comments
Lets take a common little riddle and encode it into a little game.

The Fox, then Chicken, and Grain...
- - - - -

ios_base::xalloc and iostream

Icon 3 Comments
Over the years I have written a few stream manipulators and one thing that has kind of confounded me is a way to save persistent information for each stream. Well today I found a way.

Lets take a really simple example. You would like to add line numbers your output lines. Simple enough to do with a static variable and a manipulator:

...
* * * * -

C++ Coding Challenge #1

Icon 15 Comments
Problem: Write a program that will find the largest element of an arbitrary array without using any conditional structures: banned { if/if-else/switch/for/while/do/?:-operator }

bonus: Display the array sorted from smallest to largest with the same conditions.

i.e. write the function max in this little program:

...
- - - - -

Boost::Spirit Parser

Icon 2 Comments
So someone was asking about how to parse ini files ( here ) which led me to find this Boost::Spirit ini parser which made me interested in learning about Boost::Spirit...
* * * * *

C++ Template Metaprogramming

Icon 11 Comments
Template Metaprogramming

"Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy." --Alan Perlis...
* * * * -

Advice For Programmers (2010)

Icon 12 Comments
Advice For Programmers (2010)

[inspired by this thread...
- - - - -

Improving Monkey Productivity using Markov Chains

Icon Leave Comment
Monkeys Producing Shakespeare
...
* * * * *

X-Macros in C: Abstracting Datafiles

Icon Leave Comment
Using X-Macros in C
case study: Abstracting data file usage...
* * * - -

C++ Hello World The OOP Way

Icon 4 Comments
I was browsing though some old computer books when I ran across, "C++ In Action: Industrial-Strength Programming Techniques" by Bartosz Milewski and I was intrigued at the approach taken. The classic "Hello World" example was given roughly as:
...

  • (2 Pages)
  • +
  • 1
  • 2

December 2014

S M T W T F S
 123456
78910111213
1415161718 19 20
21222324252627
28293031   

Recent Entries

Search My Blog

0 user(s) viewing

0 Guests
0 member(s)
0 anonymous member(s)