.Couple C++ Questions about drawing shapes and condensing my code. | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

.Couple C++ Questions about drawing shapes and condensing my code.

Any way to condense this or make it look nicer? Also trying to figure out how to get the last figure to be symmetrical, for some reason it is off a little bit. https://code.sololearn.com/cVIWUpNzB28s

6th Feb 2020, 8:42 PM
Haze
4 Respuestas
+ 1
if(row == 0 || row == num - 1 || col == 0 || col == num - 1 || col == row || row == num - col-1) For last one.. And Nice one..
6th Feb 2020, 9:10 PM
Jayakrishna 🇮🇳
0
thank you! also thanks a lot on the last one, youve helped me out a lot
6th Feb 2020, 9:12 PM
Haze
0
dang just needed that -1, i was stuck on that for a while
6th Feb 2020, 9:14 PM
Haze
0
Good try.. And Wel come..
6th Feb 2020, 9:15 PM
Jayakrishna 🇮🇳