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<stdio.h> | |
#include<stdlib.h> | |
#include<locale.h> | |
#include<string.h> | |
void insertion_sort(int *a,int t) | |
{ | |
int i,j,temp; | |
for (i=1;i<t;i++) | |
{ |
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<stdio.h> | |
#include<stdlib.h> | |
#include<locale.h> | |
#include<string.h> | |
#include<windows.h> | |
void insertion_sort(int *a,int t) //сортировка вставками | |
{ | |
int i,j,temp; | |
for (i=1;i<t;i++) |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define INPUT_DATA_FILE "in.txt" | |
#define OUTPUT_DATA_FILE "out.txt" | |
void insertion_sort(int *a, int t) | |
{ | |
int i, j, temp; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define INPUT_DATA_FILE "in.txt" | |
#define OUTPUT_DATA_FILE "out.txt" | |
void insertion_sort(int *a, int t) | |
{ | |
int i, j, temp; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define INPUT_DATA_FILE "in.txt" | |
#define OUTPUT_DATA_FILE "out.txt" | |
void insertion_sort(int *a, int t) | |
{ | |
int i, j, temp; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define INPUT_DATA_FILE "in.txt" | |
#define OUTPUT_DATA_FILE "out.txt" | |
void insertion_sort(int *a, int t) | |
{ | |
int i, j, temp; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define INPUT_DATA_FILE "in.txt" | |
#define OUTPUT_DATA_FILE "out.txt" | |
void insertion_sort(int *a, int t) | |
{ | |
int i, j, temp; |
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
3 | |
15 76 34 | |
34 56 67 | |
9 13 18 |
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<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
#include<conio.h> | |
#include<windows.h> | |
//Переписать данные из файла data.txt в файл outdata.txt, отсортировав их: | |
//по возрастанию количества «пятерок» методом простого выбора (количество пятерок вывести в файл outdata.txt для каждого студента) | |
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<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
#include<conio.h> | |
#include<windows.h> | |
//Переписать данные из файла data.txt в файл outdata.txt, отсортировав их: | |
//по возрастанию количества «пятерок» методом простого выбора (количество пятерок вывести в файл outdata.txt для каждого студента) | |
OlderNewer