This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenFileDialog openFileDialog = new OpenFileDialog(); | |
openFileDialog.Filter = "Файлы CSV (*.csv)|*.csv"; | |
if (openFileDialog.ShowDialog() == true) | |
filePath.Text = openFileDialog.FileName; | |
using (StreamReader reader = new StreamReader(filePath.Text)) { | |
string line; | |
int i = 1; | |
long countSuccess = 0; | |
long countFail = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$eventManager->addEventHandler("main", "OnBeforeEventAdd", "AddMailParams")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var k,k2,k17,N,x: longint; | |
begin | |
k:=0; k2:=0; k17:=0; | |
readln(N); | |
for i:=1 to n do | |
begin | |
readln(x); | |
if (x mod 34 = 0) then k:=k+1 | |
else if (x mod 2 = 0) then k2:=k2+1 | |
else if (x mod 17 = 0) then k17:=k17+1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const N=50; | |
var a: array [1..N] of longint; | |
i,j,k,l: longint; | |
for iL=1 to N do readLn(a[i]); | |
for i:=1 to N-1 do | |
for j:=i+1 to N do | |
if (a[i]<a[j]) then | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Data; | |
using System.Windows.Documents; | |
using System.Windows.Input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define("pi", 3.14, true); //Объявляем константу pi | |
if (defined("pi")==true) echo "Константа pi объявлена!"; //Скрипт выведет "Константа pi объявлена!" | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$message = "Это скрипт PHP!"; | |
echo $message; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<HTML> | |
<HEAD> | |
<TITLE> | |
Пример использования множесвтаенного вызова php | |
</TITLE> | |
</HEAD> | |
<BODY> | |
<p> Отображаение текста </p> | |
<?php "Привет от PHP!" ?> | |
<p> Отображаение дополнительного текста </p>\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "A $color $fruit"; | |
include 'vars.php'; | |
echo "A $color $fruit"; | |
?> |
NewerOlder