Getting Fancy With Structs

I just wanted to demonstrate how useful structs can be. Here you can see that I made a separate function to print the Bulls and Cows. I simply pass the struct as an argument and have the data neatly packaged in a struct, ready to be printed on screen.

Nice work. This is very instructional.

1 Like

Privacy & Terms