Ben Chuanlong Du's Blog

And let it direct your passion with reason.

An IO Bug in R

I encountered an input/output bug in R in Linux system. The symptom is that input and output are not displayed in the terminal and the warning message "An unusual circumstance has arisen in the nesting of readline input. Please report using bug.report()" is shown. I found that though …

A Bug in Mathematica

Mathematica is a very intelligent and powerful math software. I use it in my study and research a lot. Mathematica's ability to take derivative and to calculate limit is obvious powerful–way much beyond many mathematician's ability. Mathematica's ability to calculate integral is also powerful. There are many integrals than …

Common Mistakes in C++ Code and Ways to Debug

Debugging

  1. gdb is a excellent command tool for debugging C/C++ code.

Syntax Mistakes

  1. Missing "}". When this happens, you usually get lots of error message when you compile your code. And these error messages are often hard to understand and seems not related to your code.

  2. Missing template arguments. This …