This file contains hidden or 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
#include <stdio.h> | |
#include <locale.h> | |
#define N 4 | |
int main () { | |
setlocale(0, "russian"); | |
int a[N][N], i, j, buf, min, imin; | |
// Чтение матрицы |
This file contains hidden or 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
#include <stdio.h> | |
#include <locale.h> | |
#define ARRAY_SIZE 10 | |
using namespace std; | |
int main() { | |
setlocale(0, "russian"); | |
float a[ARRAY_SIZE][ARRAY_SIZE]; | |
float max, min; |
This file contains hidden or 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
#include <stdio.h> | |
int main() { | |
printf("Hello, world!"); | |
return 0; | |
} |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int i,n; | |
float a=1.0,b=2.0,s=0.0; | |
cout<<"Input n"; |
This file contains hidden or 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
set :user, 'resure' | |
set :application, "milesmain" | |
set :domain, '42miles.net' | |
set :repository, "#{user}@#{domain}:git/#{application}.git" | |
set :deploy_to, "/home/#{user}/#{domain}" | |
set :scm, :git | |
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` | |
role :web, domain # Your HTTP server, Apache/etc |
This file contains hidden or 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
#include <stdio.h> | |
#include <locale.h> | |
#include <string.h> | |
#include <stdlib.h> | |
int main() { | |
int i=-1, nums[100], pr = 0, n = 0, max[3]; | |
char str[100][100]; | |
setlocale(0, "russian"); | |
max[0] = max[1] = max[2] = 0; |
This file contains hidden or 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
#include <stdio.h> | |
#include <locale.h> | |
#include <string.h> | |
#include <stdlib.h> | |
typedef struct list { list *next; list *prev; char val[100]; }; | |
void print_list( list *element) { | |
while (element != NULL){ | |
printf("%s ", element -> val); |
This file contains hidden or 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
template< typename T > | |
class int_vector | |
{ | |
T* ptr; | |
int capacity; | |
int count; | |
public: | |
int Capacity() | |
{ |
This file contains hidden or 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
#include <iostream> | |
#include <locale.h> | |
#define V true | |
#include "30_element.h" | |
#include "30_vector.h" | |
int main() | |
{ |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
#include <locale.h> | |
#define STRLEN 255 | |
int decrypt(int c, int n, bool crypt = false) | |
{ | |
// Функцию можно вызывать как decrypt( c, n ), где n — ключ, а c - символ. | |
// А можно и так: decrypt( c, n, 1 ), тогда она будет шифровать символы. |
OlderNewer