النتائج 46 إلى 60 من 124
الموضوع: دردشة عامة لأشياء مختلفة
- 30-09-2017, 12:23 PM #46
TextSetFont
The function sets the font for displaying the text using drawing methods and returns the result of that operation. Arial font with the size -120 (12 pt) is used by default.
كود PHP:TextSetFont
bool TextSetFont(
const string name, // font name or path to font file on the disk
int size, // font size
uint flags=0, // combination of flags
int orientation=0 // text slope angle
);
- 01-10-2017, 08:29 AM #47
- 01-10-2017, 08:35 AM #48
- 02-10-2017, 04:50 AM #49
- 02-10-2017, 11:09 PM #50
- 03-10-2017, 01:14 AM #51
؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
- 03-10-2017, 01:33 AM #52
- 03-10-2017, 01:38 AM #53
- 03-10-2017, 09:14 AM #54
مااهو الفرق بين الكودين اسفل
كود PHP://+------------------------------------------------------------------+
class CObjectA
{
public:
CObjectA(){Print(__FUNCTION__," ConstructorA");Sleep(2000);}
~CObjectA(){Print(__FUNCTION__," DestructorA");Sleep(2000);}
};
//+------------------------------------------------------------------+
class CObjectB
{
public:
CObjectB(){Print(__FUNCTION__," ConstructorB");Sleep(2000);}
~CObjectB(){Print(__FUNCTION__," DestructorB");Sleep(2000);}
};
//--- declaring the objects globally
CObjectB second;
CObjectA first;
//+------------------------------------------------------------------+
void OnStart()
{
Print(__FUNCTION__);
}
كود PHP://+------------------------------------------------------------------+
class CObjectA
{
public:
CObjectA(){Print(__FUNCTION__," ConstructorA");Sleep(2000);}
~CObjectA(){Print(__FUNCTION__," DestructorA");Sleep(2000);}
};
//+------------------------------------------------------------------+
class CObjectB
{
public:
CObjectB(){Print(__FUNCTION__," ConstructorB");Sleep(2000);}
~CObjectB(){Print(__FUNCTION__," DestructorB");Sleep(2000);}
};
//--- declaring the objects globally
CObjectA first;
CObjectB second;
//+------------------------------------------------------------------+
void OnStart()
{
Print(__FUNCTION__);
}
- 03-10-2017, 09:15 AM #55
ج: order of initialization match the order of declaration of variables in GlobalVar script, and deinitialization is done in reverse order before MQL4-program roll-out.
- 03-10-2017, 09:18 AM #56ج: order of initialization match the order of declaration of variables in GlobalVar script, and deinitialization is done in reverse order before MQL4-program roll-out.
https://www.mql5.com/en/articles/28
- 03-10-2017, 09:21 AM #57
Local variables are initialized only if they are used in program. If a variable is declared, but the block of code in which it is declared is not executed, then this variable is not created and hence it is not initialized.
- 03-10-2017, 12:16 PM #58
مهم جددا لسرعة تنفيذ الاوامر
كود:f instead of using a variable for the array size you call the ArraySize() function when checking condition in a for loop, the looping time may be significantly prolonged as the ArraySize() function will be called at every loop iteration. So the function call takes more time than calling a variable: for(int i=0; i<ArraySize(Variable); i++){ // some manipulations on the Variable[i] element } Use of the above code is not recommended. If the program algorithm allows for backward loop iteration, you can do without a variable for the array size: for(int i=ArraySize(Variable)-1; i>=0; i--){ // some manipulations on the Variable[i] element } In this case, the ArraySize() function will be called only once at the beginning of the loop, and the loop will run fast.
- 04-10-2017, 12:30 AM #59
Preprocessors are a way of making text processing with your C program before they are actually compiled. Before the actual compilation of every C program it is passed through a Preprocessor. The Preprocessor looks through the program trying to find out specific instructions called Preprocessor directives that it can understand. All Preprocessor directives begin with the # (hash) symbol. C++ compilers use the same C preprocessor.[1]
The preprocessor is a part of the compiler which performs preliminary operations (conditionally compiling code, including files etc...) to your code before the compiler sees it. These transformations are lexical, meaning that the output of the preprocessor is still text.
http://fresh2refresh.com/c-programmi...or-directives/
- 04-10-2017, 02:15 AM #60
The binary tree is a useful data structure for rapidly storing sorted data and rapidly retrieving stored data
It begins with a root node, which contains the original key value. The root node has two child nodes; each child node might have its own child nodes. Ideally, the tree would be structured so that it is a perfectly balanced tree, with each node having the same number of child nodes to its left and to its right. A perfectly balanced tree allows for the fastest average insertion of data or retrieval of data. The worst case scenario is a tree in which each node only has one child node, so it becomes as if it were a linked list in terms of speedآخر تعديل بواسطة فيلسوف البادية ، 04-10-2017 الساعة 02:17 AM