This page has been designed specifically for the printed screen. It may look different than the page you were viewing on the web.
Please recycle it when you're done reading.
The URI for this page is { http://cc.byexamples.com }
-
Any interactions between c++ and lua are going through lua stack. Aware of the stack status may help for debugging. I always do that, ... Continue
-
Boost C++ Libraries provides a set of peer-reviewed portable C++ source libraries. As we know, coding in c++, there are a lots of things we ... Continue
-
Calling Lua function from c++ is very simple. Value passing between c++ and Lua goes through stack, Lua C API provides a convenience ways for ... Continue
-
You can't call c function directly from Lua, you have to create a wrapper function that allows calling from Lua. In this post, shows a ... Continue
-
Calling Lua scripts from c++'s example was written in post How to embed Lua 5.1 in C++. Now, let us look at how to access ... Continue
-
GNU readline implement filename auto-complete by default, it will list all the files in the current directory. We can disable it by binds our TAB ... Continue
-
When I was assigned a project to create a text console based simulator, I am looking into how to keep a history list of entered ... Continue
-
Singleton is one of my favorite design pattern, I use it to keep a global information for my application such as Configurations, Logger etc. I ... Continue
-
Lua, is a scripting language providing dynamic data structures, maths, io and string manipulations just like any interprete language such as Bash, Python, Ruby etc. ... Continue
-
Callback function is hard to trace, but sometimes it is very useful. Especially when you are designing libraries. Callback function is like asking your user ... Continue
-
curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and ... Continue
-
From my previous post, create your own time stamp, I have introduced a way to construct your own time stamp.
Recently I found a better way, ... Continue
-
Sometimes you need to construct a structure which the variables in the structure is not specified in bytes, instead bits. It may occur when you ... Continue
-
A simple challenge for c/c++ fans, use only 2 variable and 2 for loop to print a pascal triangle looks as bellow
... Continue
-
This is an interesting quest given by my friend who working in Intel, during our conversation online.
How to swap two variables ?
Let say A=123 and ... Continue
-
Singleton is one of the common design pattern used to make a class object exist only one instant. I have read some books illustrate the ... Continue
-
Don't know whether you aware of the example code at Tap the interrupt signal, I am using sleep(1) within endless loop at the first sample ... Continue
-
When you hit control+c, you are actually send a SIGINT ( Interrupt signal ) to your program. By default, your program will be terminated after ... Continue
-
The title sounds a bit awkward, let my briefly explain what is it all about.
In my program, I want to wait for user input, ... Continue
-
Do you feel like writing a nice CLI Application? Where you can manipulate your text in any position and any combination of colors. There are ... Continue