This semester has the C # development this course .... First do the calculator, and the conversion, others seem to be very strong, in fact, in ACM is two simple water problem .... After a year in the competition, it is very useful to discover the algorithms and data structures that have been learned.
The core of the calculator is actually infix expression to the suffix expression, this is the "simple Calculator" on the HDU, coupled with the development tools to do the interface, the previous AC code can be run directly.
The binary conversion is much simpler.
int num; int t[maxn],tot=0; int Base ; while (num) { T[tot]=num%base; Num=num/base; Tot+ +; }
Where num is an input decimal number, base is intended to be converted to base, the T array is inverted and the output is the result of the conversion.
program = algorithm + data structure, the most core part of a software is the algorithm and data structure, so say ... or insist on doing ACM is the most worthwhile.
C # Initial Learning