fix(guide): Fix directory structure

This commit is contained in:
Bouncey
2018-10-19 10:59:50 +01:00
committed by Stuart Taylor
parent 564012a7eb
commit b1a785c87d
62 changed files with 54 additions and 717 deletions

View File

@ -1,38 +0,0 @@
---
title: Moving files between servers
---
## Moving file from local computer to remote server
* First add public key of remote server to known hosts
* The command to copy files from local computer to remote server is
```
scp -i <loction of servers private key> <file to be transferred> <user>@host:<location where the file has to be transferred>
```
## Moving file from remote server to local computer
* First add public key of remote server to known hosts
* The command to copy files from remote server to local computer is
```
scp -i <loction of servers private key> <user>@<host>:<location of remote file> <location where the file has to be transferred>
```
## Moving file between remote servers
* First add public key of remote servers to known hosts
* The command to copy files between remote server to local computer is
```
scp -i <loction of servers private key> <user1>@<host1>:<location of remote file> <user2>@<host2>:<location where the file has to be transferred>
```
#### To move entire directory use -r option

View File

@ -1,23 +0,0 @@
InlocaleTitle: undefined
troduction من مجموعات في مكتبة C ++ STL المجموعات هي نوع من الحاويات الترابطية التي يجب أن يكون كل عنصر فيها فريدًا. لا يمكن تعديل قيمة العنصر بمجرد إضافته إلى المجموعة ، على الرغم من أنه من الممكن إزالة القيمة المعدلة لهذا العنصر وإضافتها. يتم تنفيذها باستخدام شجرة سوداء حمراء.
فوائد استخدام المجموعات
1. يخزن القيم الفريدة فقط.
2. تحدد قيمة العنصر نفسه. قيمة العنصر هي أيضًا المفتاح المستخدم لتعريفه.
3. يوفر بحثًا سريعًا (O (log n)) باستخدام مفاتيح ie element نفسه.
4. هناك العديد من وظائف يحمل في ثناياه عوامل في مجموعات تعريف الطبقة التي تسهل البرمجة.
مثال: '' 'ج ++
# تتضمن
استخدام اسم للمحطة؛ انت مين() { جلس الصورة.
s.insert (2)؛ // insert element 2 in set s s.insert (3)؛ s.insert (5)؛ s.insert (2)؛ // إدراج نفس العنصر 2 s.insert (6)؛ لـ (auto i: s) cout << i << ""؛ محكمة << s.size () << ENDL. // يعطي حجم مجموعة
s.erase (5 // مسح عنصر 5 من مجموعة s العودة 0 } '' ' إنشاء كائن مجموعة '' 'ج ++ جلس الصورة. '' '
إدراج '' 'ج ++ s.insert (القيمة _المراد_ تفسيرها) ؛ '' '
الوصول إلى عناصر المجموعة '' 'ج ++ جلس :: يكررها ؛ لـ (it = s.begin ()؛ it! = s.end ()؛ ++ it) محكمة << \* هو؛ '' '

View File

@ -1,28 +0,0 @@
---
title: PHP Data Types
localeTitle: أنواع البيانات PHP
---
### أنواع البيانات
يحتوي كل متغير في لغة progarmming على نوع بيانات مقترن. يتطلب كل نوع بيانات كميات مختلفة من الذاكرة ولديه بعض العمليات المحددة التي يمكن إجراؤها فوقها.
\### PHP أنواع البيانات
تدعم PHP أنواع البيانات التالية: 1. `Integers` - هي أعداد كاملة ، بدون علامة عشرية ، مثل 515.
2\. `Doubles` - هي أرقام نقطية عائمة ، مثل 3.159 أو 149.1.
3\. `Booleans` - لديها اثنين فقط من القيم المحتملة إما صحيحة أو خاطئة.
4\. `NULL` - هو نوع خاص يحتوي على قيمة واحدة فقط: NULL.
5\. `Strings` - هي سلاسل من الأحرف ، مثل "PHP يدعم عمليات السلسلة."
6\. `Arrays` - يتم تسمية وفهرسة مجموعات من القيم الأخرى.
7\. `Objects` - هي مثيلات للفئات المعرفة بواسطة المبرمج ، والتي يمكنها حزم كل من الأنواع الأخرى من القيم والوظائف الخاصة بالفئة.
8\. `Resources` - هي متغيرات خاصة تحتفظ بمراجع إلى موارد خارجية (مثل وصلات قواعد البيانات).
الخمسة الأولى هي أنواع بسيطة ، أما النوعان التاليان (المصفوفات والأشياء) فهما مركبان - الأنواع المركبة يمكن أن تحزم قيمًا تعسفية أخرى من النوع التعسفي ، في حين أن الأنواع البسيطة لا تستطيع ذلك.

View File

@ -1,18 +0,0 @@
---
title: PHP Variables
localeTitle: متغيرات PHP
---
### PHP- أنواع Vaiables
تعتبر المتغيرات هي الطريقة الرئيسية لتخزين المعلومات بالطريقة الوسطى لبرنامج PHP. يتم التبرع بجميع المتغيرات في PHP بعلامة الدولار الرائدة مثل `$variable_name` . يتم تعيين المتغيرات مع `= operator` ، مع المتغير على الجانب الأيسر والتعبير المراد تقييمه على اليمين.
### تسمية متغيرة
قواعد تسمية المتغير مدرجة أدناه:
1. يجب أن تبدأ أسماء المتغيرات بحرف حرف أو أحرف سفلية. 2. يمكن أن يتكون اسم المتغير من أرقام ، أحرف ، شرطات سفلية ، ولكن لا يمكنك استخدام أحرف مثل `+ , - , % , ( , ) . &` في اسمها. 3. تعتبر أسماء المتغيرات حساسة لحالة الأحرف `($age and $AGE are two different variables)` أي أن `($age and $AGE are two different variables)` .
### إنشاء (إعلان) متغيرات PHP
في PHP ، يبدأ المتغير بعلامة $ ، متبوعًا باسم المتغير. يوضح مقتطف الشفرة الموجود أدناه.

View File

@ -1,23 +0,0 @@
InlocaleTitle: undefined
t在C ++ STL库中生成集合 集合是一种关联容器,其中每个元素必须是唯一的。一旦将元素添加到集合中,就不能修改该元素的值,尽管可以删除并添加该元素的修改值。它们使用红黑树实现。
使用套装的好处
1. 它仅存储唯一值。
2. 元素的值标识自己。元素的值也是用于标识它的键。
3. 使用键即元素本身提供快速查找Olog n
4. 类定义集中有许多内置函数可以简化编程。
例: '''C ++
# 包括
使用命名空间std; int main { 组 S;
s.insert2; //在集合中插入元素2 s.insert3; s.insert5; s.insert2; //插入相同的元素2 s.insert6; forauto is cout << i <<“”; COUT << s.size<< ENDL; //给出集合的大小
s.erase5; //从集合中删除元素5 返回0; } “”” 创建一个set对象 '''C ++ S; “””
插入 '''C ++ s.insert _值_ be\_inserted; “””
访问集元素 '''C ++ :: iterator它; forit = s.begin; it= s.end; ++ it COUT << \*; “””

View File

@ -1,28 +0,0 @@
---
title: PHP Data Types
localeTitle: PHP数据类型
---
### 数据类型
progarmming语言中的每个变量都有一个关联的数据类型。 每种数据类型都需要不同的内存量,并且具有一些可以在其上执行的特定操作。
\### PHP数据类型
PHP支持以下数据类型 1. `Integers` - 是`Integers` 没有小数点如515。
2\. `Doubles` - 是浮点数如3.159或149.1。
3\. `Booleans` - 只有两个可能的值,无论是真还是假。
4\. `NULL` - 是一种只有一个值的特殊类型NULL。
5\. `Strings` - 是字符序列,如'PHP支持字符串操作'。
6\. `Arrays` - 是其他值的命名和索引集合。
7\. `Objects` - 是程序员定义的类的实例,它们可以打包特定于类的其他类型的值和函数。
8\. `Resources` - 是包含对PHP外部资源例如数据库连接的引用的特殊变量。
前五个是简单类型,接下来的两个(数组和对象)是复合的 - 复合类型可以打包任意类型的其他任意值,而简单类型则不能。

View File

@ -1,40 +0,0 @@
---
title: PHP Syantax and Comments
localeTitle: PHP Syantax和评论
---
### PHP Syantx
PHP syantax的结构有点像
```shell
<?php
// Your PHP code goes here.
?>
```
此PHP脚本可以放在文档中的任何位置。 PHP文件通常包含HTML标记和一些脚本代码。 PHP文件的默认文件扩展名为`.php`
###如何在PHP中发表评论
PHP代码中的注释是不作为程序的一部分读取/执行的行。它的唯一目的是让正在查看代码的人阅读。
在PHP中注释可以通过单行或多行两种方式进行。 下面给出的代码片段解释了它:
```shell
<?
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
?>
```
### 更多信息

View File

@ -1,18 +0,0 @@
---
title: PHP Variables
localeTitle: PHP变量
---
### PHP- Vaiables类型
Varibles是以PHP程序的中间方式存储信息的主要方式。 PHP中的所有变量都使用`$variable_name`等前导美元符号进行捐赠。 变量分配有`= operator` ,左侧是变量,右侧是要计算的表达式。
### 变量命名
命名变量的规则如下: -
1. 变量名称必须以字母或下划线字符开头。 2.变量名可以由数字,字母,下划线组成,但不能使用`+ , - , % , ( , ) . &`类的字符`+ , - , % , ( , ) . &`以它的名字。 3. `($age and $AGE are two different variables)`名称区分大小写,即`($age and $AGE are two different variables)`
### 创建声明PHP变量
在PHP中变量以$符号开头,后跟变量名称。下面给出的代码片段显示了它。

View File

@ -1,10 +1,10 @@
---- ---
Title: Blender Water Shader effect title: Blender Water Shader effect
---- ---
#This is a simple scene to render polar waters. ## This is a simple scene to render polar waters.
##To make the cube look like water, mix the following shaders: To make the cube look like water, mix the following shaders:
*Glass BSDF Shader : Roughness = 0.850 *Glass BSDF Shader : Roughness = 0.850
IOR = 1.010 ~ 1.333 IOR = 1.010 ~ 1.333

View File

@ -1,4 +1,3 @@
--- ---
title: Blender title: Blender
--- ---
@ -11,7 +10,7 @@ The Blender software is cross-platform that runs on Windows, Linux and Mac.Blend
Blender is free and open source software, released under the *GNU General Public License (GPL)**. Blender is free and open source software, released under the *GNU General Public License (GPL)**.
#### More Information: #### More Information:
* [Blender Official Website](https://www.blender.org) * [Blender Official Website](https://www.blender.org)
* [Blender Documentation](https://docs.blender.org/) * [Blender Documentation](https://docs.blender.org/)

View File

@ -1,17 +0,0 @@
---
title: Blender
---
#Blender
Blender is a free and open source 3D creation suite. It's used for modeling, creating photorealistic renders, simulation, model sculpting, architecture models, compositing, character design, animation, rigging, level design, 2D rendered scenes, motion graphics, game development, VFX, video editing and even much more!
The Blender software is cross-platform that runs on Windows, Linux and Mac.Blender is supported by The Blender Foundation a community from around the world. Developers, animators, scientists, experts and even hobbyists that empowers the softwares development by constantly maintaining, fixing and making new features for a suitable and more responsive user experience.
Blender is free and open source software, released under the *GNU General Public License (GPL)**.
#### More Information:
* [Blender Official Website](https://www.blender.org)
* [Blender Documentation](https://docs.blender.org/)
* [The Blender Foundation](https://www.blender.org/foundation/)

View File

@ -1,14 +1,18 @@
Introduction of sets in C++ STL library ---
title: C++ STL Sets
---
## Introduction of sets in C++ STL library
Sets are a type of associative containers in which each element has to be unique.The value of the element cannot be modified once it is added to the set, though it is possible to remove and add the modified value of that element. They are implemented using red-black tree. Sets are a type of associative containers in which each element has to be unique.The value of the element cannot be modified once it is added to the set, though it is possible to remove and add the modified value of that element. They are implemented using red-black tree.
Benefits of using sets ## Benefits of using sets
1. It stores only unique values. 1. It stores only unique values.
2. Value of the element identifies itself. The value of an element is also the key used to identify it. 2. Value of the element identifies itself. The value of an element is also the key used to identify it.
3. Provides a fast lookup (O(log n)) using keys i.e. element itself. 3. Provides a fast lookup (O(log n)) using keys i.e. element itself.
4. There are many inbuilt functions in class defining sets that ease the programming. 4. There are many inbuilt functions in class defining sets that ease the programming.
Example: Example:
'''c++ ```c++
#include<bits/stdc++.h> #include<bits/stdc++.h>
using namespace std; using namespace std;
int main() int main()
@ -23,26 +27,27 @@ int main()
for(auto i:s) for(auto i:s)
cout<<i<<" "; cout<<i<<" ";
cout<<s.size()<<endl; //gives the size of set cout<<s.size()<<endl; //gives the size of set
s.erase(5); // erasing element 5 from set s s.erase(5); // erasing element 5 from set s
return 0; return 0;
} }
''' ```
Creating a set object Creating a set object
'''c++ ```c++
set <int> s; set <int> s;
''' ```
Insertion Insertion
'''c++ ```c++
s.insert(value_to_be_inserted); s.insert(value_to_be_inserted);
''' ```
Accessing set elements Accessing set elements
'''c++ ```c++
set <int>::iterator it; set <int>::iterator it;
for(it=s.begin(); it!=s.end(); ++it) for(it=s.begin(); it!=s.end(); ++it)
cout<<*it; cout<<*it;
''' ```

View File

@ -1,32 +0,0 @@
---
title: PHP Data Types
---
### Data Types
Each variable in a progarmming language has an associated data type.
Each data type requires different amounts of memory and has some specific operations which can be performed over it.
### PHP Data Types
PHP supports the the following data types:
1.`Integers` are whole numbers, without a decimal point, like 515.
2.`Doubles` are floating-point numbers, like 3.159 or 149.1.
3.`Booleans` have only two possible values either true or false.
4.`NULL` is a special type that only has one value: NULL.
5.`Strings` are sequences of characters, like 'PHP supports string operations.'
6.`Arrays` are named and indexed collections of other values.
7.`Objects` are instances of programmer-defined classes, which can package up both other kinds of values and functions that are specific to the class.
8.`Resources` are special variables that hold references to resources external to PHP (such as database connections).
The first five are simple types, and the next two (arrays and objects) are compound - the compound types can package up other arbitrary values of arbitrary type, whereas the simple types cannot.
### More Informaton
For more resources visit: https://www.w3schools.com/php/php_datatypes.asp

View File

@ -1,45 +0,0 @@
---
title: PHP Syntax and Comments
---
### PHP Syntax
The structure of a PHP syntax somewhat looks like:
```shell
<?php
// Your PHP code goes here.
?>
```
This PHP script can be placed anywhere in the document.
A PHP file generally has HTML tags, and some scripting code.
The default file extension for PHP files is `.php`.
### How to make comments in PHP?
A comment in PHP code is a line that is not read/executed as part of the program. Its only purpose is to be read by someone who is looking at the code.
In PHP, comments can be made by two ways either single-lined or multi-lined.
The code snippet given below explains multiple ways of commenting:
```shell
<?
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-line comment block
that spans over multiple
lines
*/
?>
```
### More information
For more resources you can visit: https://www.w3schools.com/php/php_syntax.asp

View File

@ -1,30 +0,0 @@
---
title: PHP Variables
---
### PHP - Vaiables Types
Varibles are the main way to store information in the middle way of a PHP program.
All variables in PHP are donated with a leading dollar sign like `$variable_name`.
Variables are assigned with the `= operator` , with the variable on the left-hand side and the expression to be evaluated on the right.
### Variable Naming
Rules for naming a variable is listed below:
1. Variables names must begin with a letter or underscores character.
2. A variable name can consist of numbers, letters, underscores but you cannot use characters like `+ , - , % , ( , ) . &` in its name.
3. Variable names are case-sensitive i.e. `($age and $AGE are two different variables)`.
### Creating (Declaring) PHP Variables
In PHP, a variable starts with the $ sign, followed by the name of the variable. The code snippet given below shows it.
``` shell
<?php
$txt = "Hello world!";
$x = 6;
$y = 10.5;
?>
```
Variable lifecycle: In PHP variables have a default value. If a variable is not declared before you attempt to use it, its value will be NULL. It is unset. So you can't use it by writing `isset($variable)` before using it.

View File

@ -2,7 +2,7 @@
title: PHP Data Types title: PHP Data Types
--- ---
# PHP Data Types ## PHP Data Types
Variables can store data of different types such as: Variables can store data of different types such as:
* String ("Hello") * String ("Hello")
@ -14,17 +14,17 @@ Variables can store data of different types such as:
* NULL * NULL
* Resource * Resource
## PHP String ### PHP String
A string is a sequence of characters. It can be any text inside quotes (single or double): A string is a sequence of characters. It can be any text inside quotes (single or double):
#### Example #### Example
``` ```php
$x = "Hello!"; $x = "Hello!";
$y = 'Hello!'; $y = 'Hello!';
``` ```
## PHP Integer ### PHP Integer
An integer data type is a non-decimal number between -2,147,483,648 and 2,147,483,647. An integer data type is a non-decimal number between -2,147,483,648 and 2,147,483,647.
@ -39,56 +39,56 @@ Rules for integers:
`$x = 5;` `$x = 5;`
## PHP Float ### PHP Float
A float (floating point number) is a number with a decimal point or a number in exponential form. A float (floating point number) is a number with a decimal point or a number in exponential form.
#### Example #### Example
`$x = 5.01;` `$x = 5.01;`
## PHP Boolean ### PHP Boolean
A Boolean represents two possible states: TRUE or FALSE. Booleans are often used in conditional testing. A Boolean represents two possible states: TRUE or FALSE. Booleans are often used in conditional testing.
``` ```php
$x = true; $x = true;
$y = false; $y = false;
``` ```
## PHP Array ### PHP Array
An array stores multiple values in one single variable. An array stores multiple values in one single variable.
`$colours = array("Blue","Purple","Pink");` `$colours = array("Blue","Purple","Pink");`
## PHP NULL Value ### PHP NULL Value
Null is a special data type which can have only one value: NULL. Null is a special data type which can have only one value: NULL.
A variable of data type NULL is a variable that has no value assigned to it. A variable of data type NULL is a variable that has no value assigned to it.
Variables can also be emptied by setting the value to NULL. Variables can also be emptied by setting the value to NULL.
**Note:** If a variable is created without a value, it is automatically assigned a value of NULL. **Note:** If a variable is created without a value, it is automatically assigned a value of NULL.
``` ```php
<?php <?php
$x = "Hello world!"; $x = "Hello world!";
$x = null; $x = null;
?> ?>
``` ```
Output: Output:
NULL NULL
## PHP Object ### PHP Object
An object is a data type which stores data and information on how to process that data. An object is a data type which stores data and information on how to process that data.
In PHP, an object must be explicitly declared. In PHP, an object must be explicitly declared.
First we must declare a class of object. A class is a structure that can contain properties and methods. First we must declare a class of object. A class is a structure that can contain properties and methods.
**Example:** **Example:**
``` ```php
<?php <?php
class Car { class Car {
function Car() { function Car() {

View File

@ -6,9 +6,9 @@ title: PHP Syntax and Comments
The structure of a PHP document may look something like: The structure of a PHP document may look something like:
``` ```php
<?php <?php
// Your PHP code goes here. // Your PHP code goes here.
``` ```
@ -16,7 +16,7 @@ The structure of a PHP document may look something like:
When placing PHP in an HTML document, a closing tag is needed, like so: When placing PHP in an HTML document, a closing tag is needed, like so:
``` ```php
<?php <?php
// Your PHP code goes here. // Your PHP code goes here.
@ -34,22 +34,22 @@ The default file extension for PHP files is `.php`.
While this is mostly personal preference, it is most common to see the lines within the <?php / ?> tags at the same level, like so: While this is mostly personal preference, it is most common to see the lines within the <?php / ?> tags at the same level, like so:
``` ```php
<?php <?php
// Same level of indendation. // Same level of indendation.
// Not indented like so. // Not indented like so.
``` ```
## How to make comments in PHP? ## How to make comments in PHP?
A comment in PHP code is a line that is not executed as part of the program. Its only purpose is to be read by someone who is looking at the code. A comment in PHP code is a line that is not executed as part of the program. Its only purpose is to be read by someone who is looking at the code.
In PHP, comments can be make by two ways — either single-lined or multi-lined. In PHP, comments can be make by two ways — either single-lined or multi-lined.
This can be seen in the example below: This can be seen in the example below:
``` ```php
<? <?
// This is a single-lined comment. // This is a single-lined comment.

View File

@ -13,7 +13,7 @@ All PHP files are saved by the extension ` .php `. PHP scripts can be added anyw
To print any statement in PHP we use ` echo ` command. To print any statement in PHP we use ` echo ` command.
#### Code sample #### Code sample
``` ```php
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<body> <body>
@ -31,7 +31,7 @@ echo "Hello World!";
### Declaring Variables ### Declaring Variables
We declare variables in PHP by adding dollar `$` sign before them. We declare variables in PHP by adding dollar `$` sign before them.
``` ```php
<?php <?php
$x = 5; $x = 5;
echo $x; echo $x;
@ -41,14 +41,14 @@ echo $x;
### Comments in PHP ### Comments in PHP
To write a single line comment in PHP we put hashtag `#` or by putting `//` before the comment. To write a single line comment in PHP we put hashtag `#` or by putting `//` before the comment.
``` ```php
<?php <?php
# This is a single line comment # This is a single line comment
// This is also a single line comment // This is also a single line comment
?> ?>
``` ```
To write a double line comment we start the comment with `/*` and end with `*/`. To write a double line comment we start the comment with `/*` and end with `*/`.
``` ```php
<?php <?php
/* This is a /* This is a
Double line comment. */ Double line comment. */
@ -57,7 +57,7 @@ Double line comment. */
We can also comment out some parts of the code line. We can also comment out some parts of the code line.
#### Code Sample #### Code Sample
``` ```php
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<body> <body>

View File

@ -1,23 +0,0 @@
InlocaleTitle: undefined
troduction de conjuntos na biblioteca C ++ STL Conjuntos são um tipo de contêineres associativos nos quais cada elemento deve ser exclusivo. O valor do elemento não pode ser modificado depois que é adicionado ao conjunto, embora seja possível remover e adicionar o valor modificado desse elemento. Eles são implementados usando uma árvore vermelha e preta.
Benefícios de usar conjuntos
1. Ele armazena apenas valores exclusivos.
2. O valor do elemento se identifica. O valor de um elemento também é a chave usada para identificá-lo.
3. Fornece uma pesquisa rápida (O (log n)) usando chaves, ou seja, o próprio elemento.
4. Existem muitas funções embutidas na classe que definem conjuntos que facilitam a programação.
Exemplo: '' 'c ++
# incluir
usando namespace std; int main () { conjunto s;
s.insert (2); // insere o elemento 2 no conjunto s s.insert (3); s.insert (5); s.insert (2); // inserindo o mesmo elemento 2 s.insert (6); para (auto i: s) cout << i << ""; cout << s.size () << endl; // o tamanho do conjunto
s.erase (5); // apagando o elemento 5 do conjunto s return 0; } '' ' Criando um objeto definido '' 'c ++ conjunto s; '' '
Inserção '' 'c ++ s.insert (valor _a ser_ inserido); '' '
Acessando elementos do conjunto '' 'c ++ conjunto :: iterador; para (it = s.begin (); it! = s.end (); ++ it) cout << \* it; '' '

View File

@ -1,28 +0,0 @@
---
title: PHP Data Types
localeTitle: Tipos de dados PHP
---
### Tipos de dados
Cada variável em uma linguagem de programação tem um tipo de dados associado. Cada tipo de dados requer diferentes quantidades de memória e possui algumas operações específicas que podem ser executadas sobre ele.
\### Tipos de dados PHP
O PHP suporta os seguintes tipos de dados: 1. `Integers` - são números inteiros, sem um ponto decimal, como 515.
2\. `Doubles` - são números de ponto flutuante, como 3.159 ou 149.1.
3\. `Booleans` - possuem apenas dois valores possíveis, verdadeiro ou falso.
4\. `NULL` - é um tipo especial que possui apenas um valor: NULL.
5\. `Strings` - são seqüências de caracteres, como 'PHP suporta operações de string.'
6\. `Arrays` - são coleções nomeadas e indexadas de outros valores.
7\. `Objects` - são instâncias de classes definidas pelo programador, que podem empacotar outros tipos de valores e funções específicos da classe.
8\. `Resources` - são variáveis especiais que contêm referências a recursos externos ao PHP (como conexões de banco de dados).
Os primeiros cinco são tipos simples, e os dois seguintes (arrays e objetos) são compostos - os tipos compostos podem empacotar outros valores arbitrários do tipo arbitrário, enquanto os tipos simples não podem.

View File

@ -1,40 +0,0 @@
---
title: PHP Syantax and Comments
localeTitle: PHP Syantax e Comentários
---
### PHP Syantx
A estrutura de um PHP syantax se parece com:
```shell
<?php
// Your PHP code goes here.
?>
```
Este script PHP pode ser colocado em qualquer lugar no documento. Um arquivo PHP geralmente tem tags HTML e algum código de script. A extensão de arquivo padrão para arquivos PHP é `.php` .
\### Como fazer comentários em PHP?
Um comentário em código PHP é uma linha que não é lida / executada como parte do programa. Seu único propósito é ser lido por alguém que esteja olhando para o código.
No PHP, os comentários podem ser feitos de duas maneiras, seja de uma única linha ou de várias linhas. O trecho de código abaixo explica isso:
```shell
<?
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
?>
```
### Mais Informações

View File

@ -1,18 +0,0 @@
---
title: PHP Variables
localeTitle: Variáveis PHP
---
### Tipos PHP-Vaiables
Variáveis são a principal maneira de armazenar informações no meio de um programa PHP. Todas as variáveis no PHP são doadas com um sinal de dólar como `$variable_name` . As variáveis são atribuídas com o `= operator` , com a variável do lado esquerdo e a expressão a ser avaliada à direita.
### Nomenclatura Variável
As regras para nomear uma variável estão listadas abaixo:
1. Os nomes das variáveis devem começar com uma letra ou caractere sublinhado. 2.Um nome de variável pode consistir em números, letras, sublinhados, mas você não pode usar caracteres como `+ , - , % , ( , ) . &` em seu nome. Os nomes 3.Variable são sensíveis a maiúsculas e minúsculas ie `($age and $AGE are two different variables)` .
### Criando (declarando) variáveis PHP
No PHP, uma variável começa com o sinal $, seguido pelo nome da variável. O trecho de código abaixo mostra isso.

View File

@ -1,23 +0,0 @@
InlocaleTitle: undefined
tрождение наборов в библиотеке STL C ++ Наборы - это тип ассоциативных контейнеров, в которых каждый элемент должен быть уникальным. Значение элемента не может быть изменено после его добавления в набор, хотя можно удалить и добавить измененное значение этого элемента. Они реализованы с использованием красно-черного дерева.
Преимущества использования наборов
1. Он сохраняет только уникальные значения.
2. Значение элемента идентифицирует себя. Значение элемента также является ключом, используемым для его идентификации.
3. Обеспечивает быстрый поиск (O (log n)) с использованием ключей, т.е. самого элемента.
4. Существует множество встроенных функций в наборах, определяющих класс, которые облегчают программирование.
Пример: '' 'C ++
# включают
использование пространства имен std; int main () { задавать s;
s.insert (2); // вставляем элемент 2 в набор s s.insert (3); s.insert (5); s.insert (2); // вставка того же элемента 2 s.insert (6); для (auto i: s) cout << i << ""; соиЬ << s.size () << епсИ; // задает размер набора
s.erase (5); // стирание элемента 5 из набора s return 0; } «»» Создание заданного объекта '' 'C ++ задавать s; «»»
вставка '' 'C ++ s.insert (значение _для_ be\_inserted); «»»
Доступ к наборам элементов '' 'C ++ задавать :: iterator it; for (it = s.begin (); it! = s.end (); ++ it) соиЬ << \* это; «»»

View File

@ -1,28 +0,0 @@
---
title: PHP Data Types
localeTitle: Типы данных PHP
---
### Типы данных
Каждая переменная на языке программирования имеет связанный тип данных. Каждый тип данных требует разного объема памяти и имеет некоторые конкретные операции, которые могут выполняться над ним.
\### Типы данных PHP
PHP поддерживает следующие типы данных: 1. `Integers` - это целые числа без десятичной точки, например 515.
2\. `Doubles` - числа с плавающей запятой, например 3.159 или 149.1.
3\. `Booleans` - имеют только два возможных значения: true или false.
4\. `NULL` - это особый тип, который имеет только одно значение: NULL.
5\. `Strings` - это последовательности символов, например «PHP поддерживает строковые операции».
6\. `Arrays` - называются и индексируются коллекции других значений.
7\. `Objects` - это экземпляры классов, определяемых программистом, которые могут упаковывать и другие типы значений и функции, которые относятся к классу.
8\. `Resources` - это специальные переменные, которые содержат ссылки на ресурсы, внешние по отношению к PHP (например, соединения с базой данных).
Первые пять являются простыми типами, а следующие два (массивы и объекты) являются составными - составные типы могут упаковывать другие произвольные значения произвольного типа, тогда как простые типы не могут.

View File

@ -1,40 +0,0 @@
---
title: PHP Syantax and Comments
localeTitle: PHP Syantax и комментарии
---
### PHP Syantx
Структура PHP syantax несколько выглядит так:
```shell
<?php
// Your PHP code goes here.
?>
```
Этот PHP-скрипт можно разместить в любом месте документа. Файл PHP обычно имеет HTML-теги и некоторый код сценария. Расширение по умолчанию для файлов PHP - `.php` .
\### Как делать комментарии в PHP?
Комментарий в PHP-коде - это строка, которая не читается / не выполняется как часть программы. Его единственная цель - прочитать кто-то, кто смотрит на код.
В PHP комментарии могут быть сделаны двумя способами: однострочным или многострочным. Ниже приведен фрагмент кода, приведенный ниже:
```shell
<?
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
?>
```
### Больше информации

View File

@ -1,18 +0,0 @@
---
title: PHP Variables
localeTitle: Переменные PHP
---
### Типы PHP-Vaiables
Вариблеры - это основной способ хранения информации в середине программы PHP. Все переменные в PHP передаются с помощью знака доллара, как `$variable_name` . Переменные присваиваются `= operator` , с переменной в левой части и выражением, которое должно быть оценено справа.
### Переменные имена
Правила для именования переменной перечислены ниже:
1. Имена переменных должны начинаться с буквы или символа подчеркивания. 2. Имя переменной может состоять из цифр, букв, подчеркиваний, но вы не можете использовать символы, такие как `+ , - , % , ( , ) . &` в его названии. 3. Переменные имена чувствительны к регистру, т.е. `($age and $AGE are two different variables)` .
### Создание (объявление) переменных PHP
В PHP переменная начинается с знака $, а затем имя переменной. Ниже приведен фрагмент кода, приведенный ниже.

View File

@ -1,23 +0,0 @@
InlocaleTitle: undefined
tReproducción de conjuntos en la librería STL de C ++. Los conjuntos son un tipo de contenedores asociativos en los que cada elemento debe ser único. El valor del elemento no se puede modificar una vez que se agrega al conjunto, aunque es posible eliminar y agregar el valor modificado de ese elemento. Se implementan utilizando el árbol rojo-negro.
Beneficios de usar conjuntos
1. Almacena solo valores únicos.
2. El valor del elemento se identifica. El valor de un elemento es también la clave utilizada para identificarlo.
3. Proporciona una búsqueda rápida (O (log n)) usando las teclas, es decir, el elemento en sí.
4. Hay muchas funciones incorporadas en los conjuntos de definición de clase que facilitan la programación.
Ejemplo: '' 'c ++
# incluir
utilizando namespace std; int main () { conjunto s;
inserto (2); // inserta el elemento 2 en el conjunto s inserto (3); inserto (5); inserto (2); // insertando el mismo elemento 2 inserto (6); para (auto i: s) cout << i << ""; cout << s.size () << endl; // da el tamaño del conjunto
s.erase (5); // borrando el elemento 5 del set s devuelve 0; } '' ' Creando un objeto establecido '' 'c ++ conjunto s; '' '
Inserción '' 'c ++ s.insert (valor _a_ ser\_insertado); '' '
Accediendo a los elementos establecidos. '' 'c ++ conjunto :: iterador it; para (it = s.begin (); it! = s.end (); ++ it) cout << \* it; '' '

View File

@ -1,28 +0,0 @@
---
title: PHP Data Types
localeTitle: Tipos de datos PHP
---
### Tipos de datos
Cada variable en un lenguaje de programación tiene un tipo de datos asociado. Cada tipo de datos requiere diferentes cantidades de memoria y tiene algunas operaciones específicas que se pueden realizar sobre él.
\### Tipos de datos PHP
PHP soporta los siguientes tipos de datos: 1. `Integers` : son números enteros, sin un punto decimal, como 515.
2\. `Doubles` - son números de punto flotante, como 3.159 o 149.1.
3\. `Booleans` : solo tienen dos valores posibles: verdadero o falso.
4\. `NULL` : es un tipo especial que solo tiene un valor: NULL.
5\. `Strings` : son secuencias de caracteres, como 'PHP admite operaciones de cadenas'.
6\. `Arrays` : son colecciones con nombre e indexadas de otros valores.
7\. `Objects` : son instancias de clases definidas por el programador, que pueden agrupar otros dos tipos de valores y funciones que son específicos de la clase.
8\. `Resources` : son variables especiales que contienen referencias a recursos externos a PHP (como las conexiones de base de datos).
Los primeros cinco son tipos simples, y los dos siguientes (arreglos y objetos) son compuestos: los tipos compuestos pueden agrupar otros valores arbitrarios de tipo arbitrario, mientras que los tipos simples no pueden.

View File

@ -1,40 +0,0 @@
---
title: PHP Syantax and Comments
localeTitle: PHP Syantax y Comentarios
---
### PHP Syantx
La estructura de un syantax de PHP se ve algo así como:
```shell
<?php
// Your PHP code goes here.
?>
```
Este script PHP se puede colocar en cualquier parte del documento. Un archivo PHP generalmente tiene etiquetas HTML y algunos códigos de scripting. La extensión de archivo predeterminada para los archivos PHP es `.php` .
\### ¿Cómo hacer comentarios en PHP?
Un comentario en el código PHP es una línea que no se lee / ejecuta como parte del programa. Su único propósito es ser leído por alguien que está mirando el código.
En PHP, los comentarios se pueden hacer de dos formas, ya sea de línea simple o de línea múltiple. El fragmento de código dado a continuación lo explica:
```shell
<?
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
?>
```
### Más información

View File

@ -1,18 +0,0 @@
---
title: PHP Variables
localeTitle: Variables PHP
---
### PHP- Tipos de variables
Las variables son la forma principal de almacenar información en el medio de un programa PHP. Todas las variables en PHP son donadas con un signo de dólar líder como `$variable_name` . Las variables se asignan con el `= operator` , con la variable en el lado izquierdo y la expresión a evaluar a la derecha.
### Nombre de variable
Las reglas para nombrar una variable se enumeran a continuación:
1. Los nombres de las variables deben comenzar con una letra o un carácter de subrayado. 2.El nombre de una variable puede consistir en números, letras, guiones bajos, pero no puede usar caracteres como `+ , - , % , ( , ) . &` en su nombre. 3. Los nombres de las variables distinguen entre mayúsculas y minúsculas, es decir `($age and $AGE are two different variables)` .
### Creando (Declarando) Variables PHP
En PHP, una variable comienza con el signo $, seguido del nombre de la variable. El fragmento de código dado a continuación lo muestra.