Summary of some Win32 I/O character encoding behavior

This post is about programming a Windows Win32 application, mainly one that uses the console (command line). It summarizes the results of some tests I performed. Maybe you ported a Unix utility to Windows, but you find that it doesn’t work with filenames that contain Japanese characters. This information may help, though specific recommendations will…… Continue reading Summary of some Win32 I/O character encoding behavior

A puzzle about a Fibonacci-like sequence

I’m thinking of a mathematical sequence, $latex S$, whose terms are all nonnegative real numbers. It is infinite in both directions. Like the Fibonacci sequence, it satisfies the relation: $latex \displaystyle S_n=S_{n-1}+S_{n-2}$ And we are given: $latex \displaystyle S_0=1$ What is the value of $latex S_1$? Surprisingly, you have enough information to figure it out. Note…… Continue reading A puzzle about a Fibonacci-like sequence