Click here to Skip to main content
15,126,567 members
Articles / Programming Languages / C++
Posted 19 Dec 2001


50 bookmarked

Fun with the Matrix code and Markov chains

Rate me:
Please Sign up or sign in to vote.
4.72/5 (19 votes)
19 Dec 2001
Emulates the Matrix code (like Dozer's screens in the movie) and generates nonsense text via Markov chains

Sample Image - matrix.jpg


You must not search for any serious sense in this application. I did it only for fun.


The "Just Matrix" application emulates the Matrix code (like Dozer's screens in the movie) and generates nonsense text via Markov chains.

The curious reader can find two main classes in the source code.

  • MatrixBlitter - in fact the class for the emulating of the Matrix code, but it can draw a streams of code in any colour :)
  • markov_chains - it uses a well-known algorithm for the generating of a nonsense text

The source code has no dependence on MFC or ATL only STL. You can freely use it in any application.

Feel free to contact me via email and send any questions and remarks. Have fun ;)


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Konstantin Boukreev
Web Developer
Russian Federation Russian Federation
I am freelance programmer. About 3 years of experience in C++ and I would rather use ATL, STL, WTL but not MFC Smile | :) . Main backgrounds are Win32 API, COM and Networking. Now I am interested about AI (Neural Network, Fuzzy Logic and GA). Currently based in Vladivostok, Russia.

Comments and Discussions

Generalim a Pin
cybr_sn@k322-Oct-08 10:18
Membercybr_sn@k322-Oct-08 10:18 
GeneralDisplaying In CMD Pin
Insignificant Spec4-Jan-05 2:16
MemberInsignificant Spec4-Jan-05 2:16 
GeneralNot original, but pertty well :-) Pin
Anonymous14-Nov-03 4:46
MemberAnonymous14-Nov-03 4:46 
QuestionSo What??? Pin
EmirPerez23-May-03 20:36
MemberEmirPerez23-May-03 20:36 
Generalget the code to discuss Pin
Tu_fotech22-May-03 17:30
MemberTu_fotech22-May-03 17:30 
GeneralRe: get the code to discuss Pin
TomP25-May-03 20:39
MemberTomP25-May-03 20:39 
GeneralRe: get the code to discuss Pin
kbsoftware20-Apr-05 20:19
Memberkbsoftware20-Apr-05 20:19 
Questiondrawing past pane window? Pin
Ed Korsberg30-Dec-02 9:23
MemberEd Korsberg30-Dec-02 9:23 
GeneralThe link is broken Pin
Mehdi Mousavi20-Dec-01 10:43
MemberMehdi Mousavi20-Dec-01 10:43 
GeneralRe: The link is broken Pin
Konstantin Boukreev22-Dec-01 20:00
MemberKonstantin Boukreev22-Dec-01 20:00 
GeneralCool, but not perfect Pin
Tim Kosse20-Dec-01 2:49
MemberTim Kosse20-Dec-01 2:49 
GeneralRe: Cool, but not perfect Pin
Henry Jacobs21-Dec-01 10:42
MemberHenry Jacobs21-Dec-01 10:42 
GeneralRe: Cool, but not perfect Pin
Jason Hooper14-Jul-02 9:23
MemberJason Hooper14-Jul-02 9:23 
GeneralRe: Cool, but not perfect Pin
Thomas Willey17-Dec-02 10:29
MemberThomas Willey17-Dec-02 10:29 
GeneralRe: Cool, but not perfect Pin
Jason Hooper19-Dec-02 0:08
MemberJason Hooper19-Dec-02 0:08 
GeneralChange it to screen saver Pin
MoZ19-Dec-01 23:23
MemberMoZ19-Dec-01 23:23 
GeneralRe: Change it to screen saver Pin
Konstantin Boukreev19-Dec-01 23:34
MemberKonstantin Boukreev19-Dec-01 23:34 
GeneralRe: Change it to screen saver Pin
Anonymous5-Jun-03 11:13
MemberAnonymous5-Jun-03 11:13 
GeneralRe: Change it to screen saver Pin
Anonymous29-Jun-03 2:56
MemberAnonymous29-Jun-03 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.