Beyler kardeşimin acil ödevi var saatlerdir urağşıyoruz ama kod bir türlü çalışmıyor bugün içinde teslim etmemiz gerekiyor lütfen yardım edin arkdaşlar
You're going to reverse each occurence of an array in a given 2D matrix.
This process will be applied to a number of integers,which should be stored in a two-dimensional array.
First,fill an integer table by calling fill_table function.This function should randomly fill the array with the integers between 1 and 9. The last element of the array should be equal to the 0.
Then, in the main program you should define an array which must exist in the table at least 1.After each occurrence of the array is dound and reversed in the table,the result should be printed by calling the print_table function.
All accesses must be done using pointers.You can assume that 2D matrix size is equal to 10 to 10.
void fill_table(int table[10][10]){} : This function is responsible for filling the table.The last element of the the table must be equal to 0.
void print_table(int table[10][10]{} : This function is responsible for printing all integers in the table.
int find_and_replace_array(int *array1,in
[02:09, 07.05.2021] Yıldız Ozan: int find_and_replace_array(int *array1,int *array2,int len1,int len2){} : This function finds all occurences of array2 in the array1 and calls the reverse function with appropriate parameters for them to be reversed. Note that the return type is "int" instead of "void". Use this to your advantage.
void reverse(int *array1,int position,int * array2, intlen2){} : This function is responsible for the reversing process itself. Here, it is guaranteed that there is an occurance of the array2 in the array1 at position index.
void find_and_replace_table(int table[10][10],int *array,int len1,int len2){} : This function reverses all occurrences of the array in all integers available in the table by calling appropriate functions.
bu en alttaki satırı yani
void find_and_replace_table(int table[10][10],int *array,int len1,int len2){} : This function reverses all occurrences of the array in all integers available in the table by calling appropriate functions.
bu satırıda yazanları bir türlü yapıp çalıştıramıyoruz son günü lütfen yardım edin arkdaşlar nasıl yapabiliriz
ödevin resmide bu arkdaşlar
You're going to reverse each occurence of an array in a given 2D matrix.
This process will be applied to a number of integers,which should be stored in a two-dimensional array.
First,fill an integer table by calling fill_table function.This function should randomly fill the array with the integers between 1 and 9. The last element of the array should be equal to the 0.
Then, in the main program you should define an array which must exist in the table at least 1.After each occurrence of the array is dound and reversed in the table,the result should be printed by calling the print_table function.
All accesses must be done using pointers.You can assume that 2D matrix size is equal to 10 to 10.
void fill_table(int table[10][10]){} : This function is responsible for filling the table.The last element of the the table must be equal to 0.
void print_table(int table[10][10]{} : This function is responsible for printing all integers in the table.
int find_and_replace_array(int *array1,in
[02:09, 07.05.2021] Yıldız Ozan: int find_and_replace_array(int *array1,int *array2,int len1,int len2){} : This function finds all occurences of array2 in the array1 and calls the reverse function with appropriate parameters for them to be reversed. Note that the return type is "int" instead of "void". Use this to your advantage.
void reverse(int *array1,int position,int * array2, intlen2){} : This function is responsible for the reversing process itself. Here, it is guaranteed that there is an occurance of the array2 in the array1 at position index.
void find_and_replace_table(int table[10][10],int *array,int len1,int len2){} : This function reverses all occurrences of the array in all integers available in the table by calling appropriate functions.
bu en alttaki satırı yani
void find_and_replace_table(int table[10][10],int *array,int len1,int len2){} : This function reverses all occurrences of the array in all integers available in the table by calling appropriate functions.
bu satırıda yazanları bir türlü yapıp çalıştıramıyoruz son günü lütfen yardım edin arkdaşlar nasıl yapabiliriz
Bağlantıları görmek için lütfen
Giriş Yap
Bağlantıları görmek için lütfen
Giriş Yap
ödevin resmide bu arkdaşlar