None of your post makes any sense. There is never a case where you could interchange square brackets with curly braces - they are very different. Curly braces are always used for scopes and uniform initialization.
Could you post some example code of what you are talking about?
To LB / I was about to ask you to determine when or which situation I am supposed to use {} or []. and now " There is never a case where you could interchange square brackets with curly braces" makes me think they are very obviously different in C++ and there's no rule to determine which to use over all the C++ , but just have to memorize it.
Thanks.
To Lbkulinski / Thank you so I have to memorize which braces should be used for each situation, and there are no rules to determine it over all the C++?
Knowing what braces to use when is something you learn quickly - they have very specific uses. I don't think 'memorize' is the right word though. Just read and write lots of code and you will get used to it.
There are "rules", very strict rules. The C++ Standard is the rules. Simply reading the Tutorials on this site very carefully should give a good start.