A
A
Abramoshka2016-09-29 20:48:01
C++ / C#
Abramoshka, 2016-09-29 20:48:01

How to find incorrectly placed brackets { and } in C++?

There are a lot of lines in the code, but here's how to find one parenthesis among them, which breaks the whole code...

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Tsilyurik, 2016-09-29
@Olej

There are a lot of lines in the code, but here's how to find one parenthesis among them, which breaks the whole code...

1. A heap is how much? 5000? 10000? ... rather than writing code in sheets in one file.
2. Either put the code in an editor / IDE with markup (I love Geany) so that it shows you the markup.
3. Or use comments to exclude inner blocks {} until unmatchedness is detected at the top level.

P
parkito, 2016-09-30
@parkito

clion with autoformatting - to help you

D
Daniil Demidko, 2016-10-01
@Daniro_San

in IDE: Ctrl+I, profit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question