Fixing Chinese Garbled Text in Code::Blocks

Code::Blocks is a C/C++ IDE that I personally like to use, but I kept running into one problem: with Code::Blocks, I couldn’t use Chinese at all. Strings couldn’t contain Chinese, and even comments couldn’t. I originally thought it was a bug in the program itself, but a fellow user reminded me that it was actually a default encoding issue! ...

September 3, 2011 · 1 min

What Development Environment Should I Choose? Notepad? Visual Studio?

Many people probably have this question when they first start learning a programming language: what development environment should I choose? Should I use the simplest Notepad, or a powerful tool like Visual Studio? Well, it depends on your situation. There’s no standard answer. ...

May 23, 2011 · 2 min

wxDevC++ - The C++ IDE Every Dev C++ Fan Needs to Know About

A lot of people who learn C++ actually start with Dev C++. VC++ is convenient for beginners, sure, but you can’t learn standard C (ANSI C) with it, because VC contains far too many functions that belong to .NET — compile that code with another compiler and you’ll run into trouble. So beginners generally go with Dev C++ or Code::Blocks. Unfortunately, Dev C++ hasn’t been updated for several years, and it no longer supports many newer features. Code::Blocks, on the other hand, has poor Chinese support: if there’s Chinese anywhere in your code you’ll run into problems, and that includes not being able to use Chinese in comments. The one I want to recommend here, wxDev C++, actually carries on Dev C++’s characteristics while adding some new features, unlike Dev C++ which has no end of problems… So if you’re comfortable with Dev C++, I’d suggest giving wxDev C++ a try, because it’s almost identical to Dev C++! As for me, I’ll just keep using my Code::blocks~ ...

May 18, 2011 · 2 min

[Python] Python Interpreter Installation Tutorial

Recently I've been playing around with Google Storage, so I dusted off a Python book that had been gathering dust and read through it. Together with the documentation on Google Code, I wrote a small automatic backup program. It's still very simple, so I won't publish it yet. But writing it made me realize that Python is a fairly easy programming language. In terms of ease of learning and rigor, it's about on par with VB. In terms of verbosity, though, Python wins over VB (I mean VB is the wordier one XD). For example, an if statement in VB has to be written as if.....then.......end if, while in Python you just write if....: to get started. Indentation also matters a lot in Python. If the indentation is wrong, the program won't run, because the interpreter uses indentation to decide where selection structures, loops, and so on end. Personally, I'd recommend Python to beginners, since it lets you write very neat code ~...

February 18, 2011 · 3 min

Code::Blocks 10.05 - A C/C++ Compiler That Rivals Dev C++, Cross-Platform (Ubuntu, Windows, Mac)

I'm sure you know the Dev C++ compiler. Many schools use it as the platform for teaching C. For example, the computer classes at Taiwan's top high schools seem to use it. But here I want to introduce not Dev C++, but Code::Blocks. Code::Blocks and Dev C++ are both compilers for C (both C and C++). However, if you have been following Dev C++, you may have noticed that it has not been updated in a long time. Code::Blocks is free and open source, just like Dev C++, but it also supports multiple operating systems, including Windows and Linux. So if you want to write C programs on Ubuntu, you can try this software. This tutorial is for Windows only. ...

February 11, 2011 · 3 min