Untitled
Never
#include "pch.h" #include <iostream> #include <Windows.h> #include <time.h> using namespace std; const int MAX_SYMBOL = 20; const int MAX_LINE = 20; const int MAX_COLUMN = 20; void SearchElement(char(*pArray)[MAX_COLUMN]); int main() { SetConsoleCP(1251); SetConsoleOutputCP(1251); srand(time(NULL)); char random_sym[MAX_SYMBOL + 1] = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'o', 'p', 'q', 'r', 's', 't', 'u'}; char array[MAX_LINE][MAX_COLUMN]; for (int i = 0; i < MAX_LINE; i ++) { for (int j = 0; j < MAX_COLUMN; j++) { array[i][j] = random_sym[rand() % MAX_SYMBOL]; cout << array[i][j] << " "; } cout << endl; } SearchElement(array); cin.get(); return 0; } void SearchElement(char (* pArray)[MAX_COLUMN]) { int tmp_collumnIdx = -1; char tmp_collumnSym = 'u'; int tmp_lineIdx = -1; char tmp_lineSym = 'a'; for (int i = 0; i < MAX_LINE; ++i) { for (int j = 0; j < MAX_COLUMN - 1; j++) { if (pArray[i][j] < pArray[i][j + 1] && pArray[i][j] < tmp_collumnSym) { tmp_collumnSym = pArray[i][j]; tmp_collumnIdx = j; } if (pArray[i][j] > pArray[i][j + 1] && pArray[i][j] > tmp_lineSym) { tmp_lineSym = pArray[i][j]; tmp_lineIdx = i; } } } cout << "Номер строки в которой максимальный элемент: " << tmp_lineIdx << ", Элемент: " << tmp_lineSym << endl; cout << "Номер столбца в котором минимальный элемент: " << tmp_collumnIdx << ", Элемент: " << tmp_collumnSym; }
Raw Text
-
Fucked and cum on the face of an adorable anime girl
9 min ago
-
Adult Telegram Channels
12 min ago
-
No Deposit Bonus
15 min ago
-
Movstream
31 min ago
-
Makers CBD Gummies Reviews
33 min ago
-
I have no control over my pussy.
39 min ago
-
mokello
42 min ago
-
I scratched our car, so here's my pussy as an apology
1 hour ago
-
Teen Dildo Lover Scarlett Takes Off Her Clothes And Masturbates With Dildo!
1 hour ago
-
step mom and step son amateur سکس مامان و تعریف خاطرات سکس ایرانی داستانی کص مکالمه و حرف زدن
2 hours ago