1. member functions that cannot be automatically inherited
Constructor (including copy constructor)
Destructor= Operator
Ii. Inheritance and constructor
The constructor of the base class is not inherited. You must declare your own constructor In
At the invitation of a netizen, I wrote a numeric conversion function. If you have any shortcomings, click it. # Include
/* * Function: int convert (INT num, char * STR, unsigned int Radix)* Function: convert a decimal integer to 2 ~ 36
Number base Conversion
Time limit:1000 ms
Memory limit:10000 K
Total submissions:3231
Accepted:1394
Description Write a program to convert numbers in one base to numbers in a second base. There
It is estimated that the first impression is atoi. In fact, it is not easy to use atoi when it encounters "0x1234", and I think it is best to use strtol and strtoul:
Http://huigezrx.blog.163.com/blog/static/3210165220102472843690/ from:
Strtol
C # base class implementation for reading XML files,
At the beginning of the new unit, I learned their source code. The XML code for reading and writing system configuration files in the Code is relatively old and written directly in a system
1. Three basic concepts of object-oriented programming: Data abstraction (Class), Inheritance (class inheritance), and dynamic binding (the runtime determines whether a base class function or a derived class function is used). The key idea of object-
When using Sina Weibo APIs, we sometimes need to get a Weibo url, but the Weibo status field obtained from interfaces such as statusespublic_timeline does not include any, status contains a mid field. we can calculate the url through mid.
Before
However, status contains a mid field. We can actually obtain the url through mid calculation.
Before starting the calculation, it is necessary to describe what is base62 encoding. It is actually an interchange between decimal and 62-digit. For the 62
Int atoi (const char * Str) // Convert string to integerIgnore the white space in front of STR until the first non-white space character is encountered. If the first non-white space character is a plus or minus sign or number, convert as long as
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.