How to use multidimensional arrays and structures in C language
This article introduces the knowledge of "how to use multi-dimensional arrays and structures in C language". Many people will encounter this dilemma in the operation of actual cases. next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Title:
There is a collection of colors with several color values (represented by the RBG system). There are now several color values that need to be mapped to a value in the collection. The specific mapping method is to find the one in the collection that has the smallest color distance from it. In the RGB color system, colors are represented by a triple of (Rmaine Greco B), which is an integer between 0 and 255. The distance between two colors is defined as follows: assuming that the triples of two colors are (Ra,Ga,Ba) and (Rb,Gb,Bb) respectively, then the distance between them
Enter:
Enter an integer n (1) first