+ 1

How to print an array with brackets around it?

I will print an array but want to show “[ ]” in Cpp, how can I try to do it?

22nd Jun 2020, 3:42 PM
Noo Salomon
Noo Salomon - avatar
3 Antworten
+ 2
I’m doing a for loop and put a “vertical line” (before and after the array) like “l”. But I was wondering if I can connect it or do it more aesthetic
22nd Jun 2020, 4:00 PM
Noo Salomon
Noo Salomon - avatar
+ 2
Can you post your code for see if I can help you?
22nd Jun 2020, 4:03 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
+ 1
Do you try to do something to achieve that?
22nd Jun 2020, 3:58 PM
Emanuel Maliaño
Emanuel Maliaño - avatar