(Reprinted) GCC and OBJ files, dynamic link files and elf files
--------------------------------------------------------------------------------1. OBJ file Programmers write programs by writing a binary file. If we declare a variable char C, that is, the Declaration requires an 8-bit space, then we need to declare to the system that the 8-bit space is reserved. How can we do this? It is to compile a special
-inheritance, virtual base class concept.
The polymorphism of OOD is implemented by delegation in obj-C.
5. What are the set methods and meanings of memory management autorelease, retain, copy, and assign?
1. You initialize (alloc/init) the object, and you need to release (release) it. For example:
Nsmutablearray aarray = [[nsarray alloc] init]; [aarray release];
2. You need to release retain or copy. For example:
[Aarray retain] And then [aarray rele
function body, change to:// ok:x => ({ foo: x }) ThisThe arrow function appears to be a shorthand for anonymous functions, but in fact, there is an obvious difference between an arrow function and an anonymous function: the lexical scope inside the arrow function this is determined by the context .Looking back at the previous example, this The following example
index, and the struct member length represents the substring's lengths. If not, the location value of the returned range is nsnotfound.
Obj-c just adds a little "special corpus" to the C language, so you can use printf () instead of NSLog (). However, we recommend using NSLog because it adds features such as timestamps, date stamps, and auto-append line breaks (' \ n ').An array member of 1.OC is any object pointer similar to the linked list struct
Relationship between OBJ, Lib, DLL, and exe
Lib corresponds to DLL. Lib is the library file of the static Link Library, and DLL is the library file of the dynamic link library.
The so-called static is to extract the required content from the link and arrange it into your EXE file. Lib is no longer needed for running your EXE later.
The so-called dynamic is that when the EXE runs, it depends on the functions provided in the DLL. Without this DLL,
1, Obj-CCodeThe extension is ". m ".
2When obj-C needs to include header files, you can use # include but more commonly use # import (provided by the GCC compiler ), the latter ensures that the header file is only contained once (L is similar to # ifdef in C ).
3,Cocoa framework, Refer
Http://www.cocoachina.com/newbie/basic/2009/0611/130.html
4. Hello objecitve-C
# Import
Int main (INT ar
Author: Zhuang Xiaoli (liigo), 2010/7/12
This article first address: aspx "> http://blog.csdn.net/liigo/archive/2010/07/12/5727859.aspx
Reprinted please indicate the source: http://blog.csdn.net/liigo
Purpose of this article: in a specified LIB or OBJ file, search for a piece of executable code (X86 Instruction Set) and determine the function to which it belongs.
Reason: assume that the software we write is falsely reported as a virus by the antivir
hardware, or even platform.
More importantly, it is closely integrated with the C language, which is easy for those who have learned the C language. If you want to map data with a computer but do not know where to start, if you only use C language, we recommend that you learn OpenGL.
The OBJ file here does not appear during programming. It is used to compile the application file. The OBJ file here refers t
Lock (obj) lock the obj object
Lock (this) locks the current instance object. If there are multiple class instances, the lock only locks the current class instance and has no effect on other class instances.
Directly add the code.
The main form code is as follows:
Delegate void SetTextCallback (string text );
Public Form1 ()
{
InitializeComponent ();
}
///
/// Use delegate to set text box content
///
///
1) when the obj-C compiler processes files with a suffix of m, it can recognize the code of obj-C and C. When processing mm files, it can recognize obj-C, C, c ++ code, but the CPP file must only use C/C ++ code, and the obj-C code cannot appear in the header file of the CPP File Include, because CPP is only CPP2) Mix
Summary of mixed use of C/C ++/obj-C ZZ
I also have some summary on my own, but I got it after I had been exploring it for a long time. Later I saw this article from netizens.ArticleIn the past, we can avoid detours.
1) when the obj-C compiler processes files with a suffix of m, it can recognize
CodeTo process the MM file, you can identify obj-C, C, C ++ Code.
Recently I am studying Ida. Sometimes I need to extract sig from the Lib file so that we can view the function name. However, the manual method can only be extracted by OBJ one by one. Although batch processing can be used, but sometimes the wrong coff file still requires manual intervention, so I wrote such a small tool, I learned the structure of the Lib file.
The start of the Lib file, which starts with eight strings with the value "!"
The partit
1. OBJ fileProgrammers write programs by writing a binary file. If we declare a variable char C, that is, the Declaration requires an 8-bit space, then we need to declare to the system that the 8-bit space is reserved. How can we do this? It is to compile a special binary file-OBJ file. The execution file obtained by using the C language compiled by GCC contains not only CPU commands, but also a lot of othe
Arrow functionsThe ES6 standard adds a new function: arrow function.x => x * x相当于:function (x) { return x * x;}箭头函数相当于匿名函数,并且简化了函数定义。箭头函数有两种格式,一种像上面的,只包含一个表达式,连{ ... }和return都省略掉了。还有一种可以包含多条语句,这时候就不能省略{ ... }和return:x => { if (x > 0) { return x * x; } else { return - x * x; }}If the arguments are not one, you need to () enclose them in parentheses:// 两个参数:(x, y) => x * x + y * y//
Sunlet (big winner)
22:42:00 in the VC/mfc/basic class questions
1 .. How is the relationship between OBJ,. Lib,. dll, And. h? What are the differences in calling methods when using them?2. For how to create a. Lib file by yourself, please take the process as an example. Thank you!3. How to Use the obj. file in the project file.
1 floor Holly ()The score is returned at 02:34:00.
80
1.
. And the This in the arrow function is fixed, see the following example:function obj () { setTimeout (()=>console.log (this. id);} var id = 1// 2The result of the execution is 2 instead of the global 1, indicating that when the SetTimeout function executes, this point is not the window, which differs from the normal function.In fact, the arrow function does no
nsstring string in a cocoa library, rather than a traditional C-language string. As a cocoa-style string, its functionis much more powerful than the traditional C-language string. For example, you can format various types of data with formatted characters (for example,%d) using the stringWithFormat method.6>, flower +~ can be easily switched over multiple projects.2, commonly used OC object types:1>,uiview: base class for all visual controls. Each object that is based on this class is a contain
Quickly delete the bin/obj folder of each project in VS solution, vsobj
Let's talk about the bin and obj folders in VS solution. The following information comes from Baidu.
The bin directory is used to save the project-generated assembly. It has two versions: Debug and Release. The corresponding folders are bin/Debug and bin/Release. This folder is the default output path, you can choose Project Properties>
Programming tools: VC ++ 6.0
Operating System: Win95 osr2
An experiment was conducted to create an SDI program with VC, and then delete the. exe file in the DEBUG directory and the. cpp file in the project directory. All other files are retained. In this case, you only need to use VC to call the project normally and compile it to generate the EXE file. (But VC will give you some warning and ignore it) but I think this may not be the case, which is too simple. You may not have any files except
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.