Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment It is harder than you think. (Score 2) 330 330

printf("Copied %n file%s\n", n_files, n_files > 1 ? "s" : "");

There are languages with more than two grammatical numbers. There are languages that use different word order with different numbers. You need to redesign your simple and easy printf statement to accommodate them, and the outcome is bound to be anything but simple and easy.

In any problem, if you find yourself doing an infinite amount of work, the answer may be obtained by inspection.

Working...