C # Initial Learning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.