Develop a structure for storing color circle data:
For example, here is the structure:
struct Krug { char cvetKr; int x, y, z; }; I transfer in function to structure.
int N = 3; //ΠΊΠΎΠ»ΠΈΡΠ΅ΡΡΠ²ΠΎ ΠΊΡΡΠΆΠΊΠΎΠ² Krug* globalKrug = nullptr; EnterKrug(globalKrug, N); in theory, you need to do: "Create an array of colored circles . "
here is the function. Here I do not correctly accept the structure.
void EnterKrug(Krug *globalKrug, int NN) { for(int i=0; i<=NN; i++) { scanf(&(globalKrug)[i].cvetKr); } }