I feel that my C language has been well learned. Others also say that my c is okay, but I went to the interview today. Although all the questions are existing on the internet, I made a mistake when I showed it to their technicians. When I looked at
1. The "side effect" of the constant equals symbol of the Three-object Operator"
# Include int main (INT argc, char * argv []) { int A = 1; int B = 2; int c = 3; A = B> C? B: C; // The maximum value of BC. A = 0? B: C; // obtain the value
I went to the test yesterday and made two hours of questions, including three parts. The first part isC LanguageBasic, the second part isCodeReview is to give you someProgramSegment to indicate which line will go wrong,
The third part is the basic
Summary invalid. Do not writeCodeIs the true sorrow, A few books, a c Entry 1, Basic Books C and pointers, C traps and defects, C expert programming will not be programmed after reading, haha! II. C standard library, std90_c standard library III. A
Scope: Valid range of variable namesPeriod of existence: the period in which the variable exists in the program.Storage Method: auto, register, extern, staticStorage space type: Stack: variables automatically allocated and cleared, such as local
Document directory
First condition Compilation
Second condition Compilation
Pre-compilation is the first step in the entire compilation process. It is the result output by the G ++-e option.
This step processes Macros in the source file/header
From: http://blog.csdn.net/qiumingbo/archive/2007/05/25/1625324.aspx
MessageBox usageMessage box is a common control with many attributes. This article lists some of its common methods and its application scenarios.1. MessageBox ("this is the
Unit of the C ++ Timer
[Source] http://my.csdn.net/yuhentian/code/detail/29603
The basic timer in C ++ is used, and multiple basic units are available.
// Time (), clock (), timegettime (), gettickcount (), and queryperformancecounter () in Windows
1. Use magick ++ to read images. It is applicable to various image formats (supported by magick ++)
Related information:
Http://www.imagemagick.org/Magick++/Image.html
Http://www.imagemagick.org/Magick++/Documentation.html
Http://www.imagemagick.org/
When macros are used, each parameter is enclosed in parentheses and the overall definition of macros is included. Generally, auto-increment or auto-subtraction operators are not used in macros.
The following are some common macro definitions:
[1]
1. No one forced you. You chose Symbian OS.2. This is the most important question. Is there any future for developing the Symbian platform software? Every Symbian OS developer is considering this question. The answer is very simple. Ask the market
Don't expect that you can remember and master the first book-read the second and third times;
Don't let go of any seemingly simple small programming problem-they are often not that simple, or can draw out a lot of knowledge pointsIt is not
Document directory
1. Data Stream Base
2. Set the floating point precision.
3. Set the domain width:
From: http://blog.csdn.net/KevinYuen/archive/2009/04/02/4044790.aspx
1. Stream
Low-level I/O functions (such as non-formatted I/O): usually
Return Value of the value assignment operator
1.
A = 1;
Cout
Print: 1
Cout
Print: 2
2.
A = 1;
C = (A * = 2) + (a + = 3 );
Result: A = 5, c = 10.
C = (a + = 3) + (A * = 2 );
Result: a = 8, c = 16
Explanation:
() The priority is greater than + and =
Ioccc is an annual competition that has continued since 1984. It was held by Landon curt and Larry Bassel on USENET, receives entries in winter, judges in spring, and announces winners in summer.
Can you see the following two paragraphs ?.........
1. Check for external types is not perfect;
/* Exp 1: The program has the source file. C and source file B. C Composition *//* Source File. C */ extern int N; // specifies that N is an external variable. /* Source File B. C */ long n; // The
Let's take a look at two applets.
/* Test a */ # include # include int main () { char STR [5] = "ABC "; // constant initialization int I = 0; while (STR [I]! = '/0') { printf ("% C", STR [I]); I ++; } return 0; }
Run. The output result is:
/
Time type definition:
Header file: Time. h
Defined as: time_t some systems are defined as typedef long time_t
Obtain the time function: time_t time (time_t * timer );
Time_t time_now;
Time (& time_now );
Output Time Function: char * ctime
First, master several principles:
1. Who uses it, who creates it, and who releases it!
2. Focus of char * str1, str2 [], str3 [N!
Generally, there are several usage cases:
A. First read this Code:
Int test (char * str1) { char * STR; //
The following is a question about how to correctly use the Java receiving function during the communication between Java and C ++ socket, mainly to complete the project, which may not be detailed enough. please correct me more:
1. Sending on the C ++
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