Four steps:
Download install sublime Text2 for Windows
Download installation MinGW and system variable settings
Sublime Building System Settings
Compiling tests
One, download installs sublime Text2 for Windows:
One, C + + compilation modeTypically, in a C + + program, only two types of files ——. cpp files and. h files are included. Where. cpp files are referred to as C + + source files, and the. h file is called the C + + header file, and the source code
The C standard defines the [] operator as follows:A[B] = = * (A + b)Therefore A[5] would evaluate to:* (A + 5)and 5[a] would evaluate to:* (5 + a)and from elementary school math We know those is equal.This is the direct artifact of arrays behaving
Problem:Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return-321Has a thought about this ?Here is some good questions to ask before coding. Bonus points for if you have already thought through this!If the last digit
Problem:Given A stringS, find the longest palindromic substring inS. Assume that maximum length ofSis, and there exists one unique longest palindromic substring.Solution:find palindrome strings in the middle of each character, then record the
1.typedeftypedef are used to define synonyms of the same type. Such as:1 int size_t; 2 int ptrdiff_t; 3 typedef T * iterator;It should be noted that typedef should not be treated as text extensions, as in the following example:1 string * pstring; 2
Turn! Http://blog.sina.com.cn/s/blog_5155e8d401009145.htmlQsort, contained in the Stdlib.h header file, has a total of four parameters and no return value. A typical qsort is written as followsQsort (S,n,sizeof (s[0]), CMP);The first parameter is
Srand (Time (NULL)); we are familiar with C + + random functions, using time to do the seed. However, the random seed is different in the multithreaded environment if you want to randomly make different random numbers in the sub-threads. But time in
The concept of private member variables, in the mind of the phenomenon is, with the Private keyword declaration, is the implementation of the class part, is not public, cannot access the object's private member variables outside the object.However,
One, the first C language program written-hello WorldWhy is the first program called "Hello wolrd"? In fact, the computer industry, the first program to learn any technology can be called "Hello world." "Hello world" literally means "hello", that is
1. Static variables the type descriptor for a static variable is static. Static variables, of course, belong to static storage, but the amount of static storage is not necessarily a static variable. For example, an external variable is statically
First, briefly list the data structures needed for the implementation process.Such asFor this diagram, its adjacency table can be expressed in this way, of course, the form can be varied, this is just a random representation of me.Vertex table Edge
A general technique for using pointersIncorrect use of pointers, when assigning a value to a bad pointer, writes the data to an area of memory that should not be written to the value. This is called memory corruption and most of the effort to
Four conversion methods and four conversion methods in C ++
There are c-style conversions, and c ++-style conversions. The conversion format of the c style is very simple (TYPE) EXPRESSION, but the TYPE conversion of the c style has many
CPP 1373 Easy as A + B (Bubble Sorting)
Question:
Easy as A + BTime Limit: 1000 MS Memory Limit: 32768 KDescription: These days, I am thinking about a question, how can I get a problem as easy as A + B? It is fairly difficulty to do such a thing.
YZOI Easy Round 2 _ input string, yzoiround
Original link: http://laphets1.gotoip3.com /? Id = 18
Description
A string consisting of lower-case letters. Some of the letters are black? . It is known that the original string is not
A return string.
Question 1125: The big integer factor C ++/JavaDescription:
The positive integer k is known to be 2
Input:
Number of digits of some non-negative integers c and c Each row has one c and is aborted when c =-1.(Do not calculate-1 !)
Output:
Each
Va 590-Always on the run (DP)
There are several cities, some of which can be reached and have cost. Initially in City 1, k-day travel is required, and finally in city n, if the minimum cost can be obtained.
D [I] [j] represents the minimum cost of
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