, env, ENV)}) FC as. Call (C (FN, Rargs)) eval (Call ("function", as. Pairlist (Fargs), FC))}Parent R is inert in most cases. Here, if we don't use the bind parameter, they won't be counted. At the same time Match.call () can get the entire function call syntax tree. If we modify the syntax tree of a function call to accomplish something else, it is actually the function of "macro". One place that differs from Lisp is that we don't need to differentiate between the valuations phase (evaluate pha
MFC_usrdll represents a user DLL(as opposed to an MFC extension DLL)_afxdll represents the use of the MFC dynamic-link library_afxext represents an MFC extension DLL to be made__date__ represents the Compile date__time__ represents compile time__file__ represents the path string containing the current program file name__line__ represents the current program code line number__stdc__ indicates compilation standard C__cplusplus represents the compilation of standard C + +_crt_secure_no_warnings In
I. Properties and Methods 1. Properties Click on the object above and the corresponding property is displayed below: 2. Methods Double-click the upper-left object to see the appropriate method: ii. Types of dataByte 0To255Boolean TrueOrFalseInteger- +,768To +,767Long(Long integer type)-2,147,483,648To2,147,483,647 Single(single-precision floating-point type)Double(double-precision floating-point type) CurrencyDecimal Date -Years1Month1Day to9999Years AMonth toDayObjec
Because macros are executed when the control occurs, we need to create the object and then let its corresponding event point to a macro.
Create a form to add a button above (If the Button Wizard dialog box appears, click Cancel).
Select the event in the Properties window/Click the Builder button to the right, select Macro Builder, and then give the macro a name, such as Macro 1.
Select "OpenForm" in the Action column and "Form 1" in t
In PowerPoint, we can also record macros to help us automate a series of actions.
1, the implementation of the "tools → macro → record new macro" command, open the "Record New Macro" dialog box, enter a name, press the "OK" button to record.
2, according to your needs, will be recorded in the process of operation, and then press the "Stop Recording" button, exit the recording status.
3, the implementation of "tools → macro → macro" command, open th
Environment: OFFICE WORD 2007Open Word, view macro, view, macro, menu, createhttp://blog.csdn.net/aminfo/article/details/38760093SUB Macro 1 () Dim MyFile As String Dim Arr (+) As string to process the maximum number of files at once, modify the number 1000 as needed to change the number to be processed dim count as Integer M Yfile = Dir ("f:\ HTML directory \" "*.html") Count = Count + 1 Arr (count) = MyFile Do While MyFile http://blog.csdn.net/aminfo/article/details/38760093Then save t
Hey, wooden head, this book is too detailed ~ look tiringThe front part is too basic, a lot of grammar method of things I do not repeat the record ~Today to see the C + + data related to some of the basic points, I have a slightly more nutritious part of the book out of the
1. Initialize
In general, we declare and initialize variables like this: int inum = 10;In fact, this is the continuation of the C language grammar, C + + has a syntax, is this: int inum (10);In fact, most people are still u
the macro is very short, using a macro increases the length of the program significantly.
There are some tasks that cannot be implemented using functions at all, but they are well implemented with macro definitions. For example, a parameter type cannot be passed as a parameter to a function, but the parameter type can be passed to the macro with the argument.
Look at the following example:
#define MALLOC (n, type) \
((Type *) malloc ((n) * sizeof (type))
With this macro, we can assign any type
If you are familiar with the language of the VBA program, it is more convenient to edit the macro directly, and the macro code is simpler.
1. Execute the tools → macros →visual basic Editor command and go to the Visual Basic Editor window.
2. In the Project Explorer window on the left, select the workbook where you saved the macro, and then execute the Insert → module command and insert a new module (Module 1).
3, the relevant macro code input or c
As you often know with friends in Word, you can easily change English characters ' uppercase ', ' lowercase ', ' first-letter ' and ' first-letter caps ' in Word (Figure 1).
Computer Tutorials
However, these features Excel do not have, if you want to use these features in Excel, you must manually modify or use complex formulas for conversion. In fact, we can write related macros to solve this problem once and for all.
First draw four command
In Excel, when you add a password to a workbook document, you need to set the options one by one to make it more cumbersome. Below, we use a macro that runs automatically, allowing the software to automatically add a password to the document.
1, start Excel, execute the "tools → macros →visual Basic Editor" command, into the VBA edit state (Figure 1).
Enter VBA Edit state
2, in the Project Explorer window on the left, select VBAProject (PERSONAL.
Macro: Use a string to replace an expression code or function call code. Before compilation, the Preprocessor uses the expression code or function call Code represented by this macro string to replace all the macro strings that appear. In this case, the function call Code represented by a macro does not need to open up the function stack, and does not need to protect and restore the function call site. This improves the code execution efficiency, calling a macro is more effective than calling a
1.Inline functions and macros:
Inline extension is used to eliminate the time overhead for function calls. It is usually used for frequently executed functions. A function with a small memory space is very beneficial. So what is the relationship between inline functions and Macros ??
In fact, the functions of inline functions are similar to those of preprocessing m
Generally, our understanding of C/C ++ macros is nothing more than two points:
1. It is used to process repeated inclusion of header files.
2. Macro used to define similar functions. Everyone can understand the first point. Second, we often see macros used to define similar functions. What is more classic: Define max (A, B) (A> B )? (A) :( B) A similar approach is primarily to bypass type checks, in this wa
Record macros in Word 2013 Step 1: Start Word 2013 and open the document, enter the text you want to work with in the document, and then, on the View tab, in the Macros group, click the Macro button and select the Record Macro option in the Open list, as shown in Figure 1. The Record Macro dialog box opens, you enter the name of the macro in the Macro Name text box, and you select the document that you save
You is a C programmer, you must is familiar with macros. They is powerful and can help you ease your work if used correctly. However, if you don ' t define macros carefully, they could bite you and drive you crazy. In the many C programs, you could see a special macro definition which may seem isn't so straightforward. Here is one example: #define __set_task_state (tsk, State_value) do {(tsk)->state = (stat
commonly used strings , common basic variable definition macros ConstApple has always recommended that we use a const instead of a macro Const Effect : 1. modifier right basic variable or pointer variable int a int *p 2. the const modifier variable is read-only Modifying basic variables//int Const A = 3;//Const int a = 3; int * const p; //P: read-only *p: variable int const * p1; //p1: variable *p1: Read Only const int * p2; //P2:
, y = 4 },{X = 0, y = 4}}
-- Print the colorPrint (myPolygon ["color"])
-- Print it again using dot-- NotationPrint (myPolygon. color)
-- The points are accessible-- In myPolygon [1] to myPolygon [4]
-- Print the second point's x-- CoordinatePrint (myPolygon [2]. x)
Program descriptionFirst, create a table. Different from the previous example, In the constructor of the table, there are {x = 0, y = 0 },What does this mean? This is actually a small table, defined in the big table, the small tableT
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.