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
//--------------------------------------------------------------------------- | |
#ifndef DinLstH | |
#define DinLstH | |
//--------------------------------------------------------------------------- | |
#endif | |
#include <stdio.h> | |
#include <conio.h> | |
#include <tchar.h> |
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
//--------------------------------------------------------------------------- | |
#pragma hdrstop | |
#include "DinLst.h" | |
//--------------------------------------------------------------------------- | |
#pragma package(smart_init) | |
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
#include "pch.h" | |
#include <stdio.h> | |
#include <conio.h> | |
int** createArr(int n, int m) { | |
int i, j; | |
int** arr = new int*[n]; | |
for (i = 0; i < n; i++) { | |
arr[i] = new int[m]; |
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
#include "pch.h" | |
#include <stdio.h> | |
#include <conio.h> | |
#include <windows.h> | |
#include <math.h> | |
int main() { | |
SetConsoleOutputCP(1251); | |
SetConsoleCP(1251); |
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
#include "pch.h" | |
#include <stdio.h> | |
#include <conio.h> | |
int** createArr(int n, int m) { | |
int i, j; | |
int** arr = new int*[n]; | |
for (i = 0; i < n; i++) { | |
arr[i] = new int[m]; |
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
int* manageArr(int n, int m) { | |
int i, j; | |
int** arr = new int*[n]; | |
for (i = 0; i < n; i++) { | |
arr[i] = new int[m]; | |
} | |
for (i = 0; i < n; i++) { | |
for (j = 0; j < m; j++) { | |
printf("Enter arr[%i][%i] = ", i + 1, j + 1); | |
scanf_s("%i", *(arr + i) + j); |
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
int max, tmp; | |
int mi, mj; | |
for (j = 0; j < m; j++) { | |
max = arr[0][j]; | |
for (i = 0; i < n; i++) { | |
if (max < arr[i][j]) { | |
max = arr[i][j]; | |
mi = i; | |
mj = j; | |
} |
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
#include "pch.h" | |
#include <iostream> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <windows.h> | |
int main() | |
{ | |
SetConsoleOutputCP(1251); | |
SetConsoleCP(1251); |
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
#include "pch.h" | |
#include <iostream> | |
#include <stdlib.h> | |
#include <conio.h> | |
#include <windows.h> | |
int main() | |
{ | |
SetConsoleOutputCP(1251); | |
SetConsoleCP(1251); |
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
#include "pch.h" | |
#include <stdio.h> | |
#include <windows.h> | |
#include <conio.h> | |
#include <iostream> | |
int main() { | |
SetConsoleOutputCP(1251); | |
SetConsoleCP(1251); |