This is a summary of efficient C ++ programming, which is very helpful.
I. # differences between # include "filename. h" and # include # Include "filename. h" indicates that the compiler will start searching for this file from the current working
Two classic categories of classesClass without pointer member (s)ComplexClass with pointer member (s)StringDefensive statements in the headerComplex.h#ifndef __complex__#define __complex__Code#endifInline Functionfunction is automatically a
Reference one side of the unknownJava does not support pointer, only provide Reference, beginners are often puzzled, especially the information structure of the students, their minds the first thought is: "No pointer, how this, it can not be done
4 design and statement
• Software design, the steps and practices of "making the software do what you want it to do," usually begins with a fairly general idea and eventually evolves into full detail to allow the development of special interfaces
1. In the beginning, C + + was just C plus some object-oriented features, originally named "C with Classes" (C with Class).2. Today's C + + is already a multi-generic programming language, supporting process form (procedural), object-oriented
I. Differences between # I nclude "filename. H" and # I nclude
# I nclude "filename. H" indicates that the compiler will start searching for this file from the current working directory.
# I nclude indicates that the compiler will start
Design and declaration of Objective C ++ classes and functions
In the course of reading Objective C ++, I have been sighing for countless times. This is a good fucking write. Therefore, I decided to write the content of this book into five blogs
recently the company recruit more, thus interviewed a lot ofC + +programmer. During the interview, I would ask questions about parameter passing, with particular emphasis on pointers. Because the pointer is after allC + +one of the most important
I. Resource managementResource management is our application of resources, whether it is memory, mutexes, files, etc., after use, all need to return to the system. C + + does not have its own garbage collection mechanism, so it is very important to
C + +is a language, just its grammar, characteristics, standard class library is already a very advanced curriculum, so in the beginning of learning, must first lay a good foundation. Know what to focus on when we're learning about it.One, #include "
Abstract: Technology lies in communication, communication, reproduced please specify the source and maintain the integrity of the work.A ReferenceReference: As mentioned before, his main function is to alias, similar to pointers, implementation is
ref:http://blog.csdn.net/fightforyourdream/article/details/15333405The topic is a simple applet, like this:[Java] View plaincopypublic class Test1 {public static void Main (String args[]) {string s = new String ("Hello");System.out.println (s);Foo
6.1 Clause 18: Make interfaces easy to use correctly and hard to use incorrectly)
Clause 13 indicates that the customer places the newly applied resources in the smart pointer to avoid resource leakage. A constructor provided by STD: tr1: shared_ptr
One of the C + + Knowledge Points series (go + organize)Do not forget to add a semicolon after the class declaration, otherwise there will be many errors!!One of the C seriesOne, #include "filename.h" and the difference between #include#include
introducing this chapter, we will explain the strategy of passing parameters to function functions in ECMAScript. In computer science, this strategy is generally called "Evaluation strategy" (Uncle Note: Some people say translation into the
Turn from: 18 Questions to be aware of to learn C + +One, # include "Filename.h" and #i nclude difference# include "filename.h" means the compiler will look for this file from the current working directory # # means the compiler will start looking
Don't be influenced by the idea of Java programming, the terminology in computer science- passed by reference (pass-by-reference). Do not make yourself a self-talk personal language.These terms are also not specific to Java, and you should not learn
18. Make the interface easy to use problem:
Parameters of the interface
Interface relies on other calls
classDate {public: Date(intmonth,intdayintyear;}The above code problem:
Easy to pass parameters in the wrong order
Before reading "Head first Java", remember that there are mentions, Java in the call method, passing parameters, the use of Pass-by-copy method, passing a copy of the content, that is, the value of the transfer.To give a simple example:1 Public
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.