DEVC++ debugging

1. If you want to view the value of each element of an array.

You can add a view when debugging: for example, there is a vector v with a length of 3. If you want to view the value of v[0], write *(&v[0]) in the add view.

If you want to view the value of the entire array, you can write *(&v[0])@3, the number after @ represents the length you want to view, where the length of the vector is 3, so you can write 3 to see all the values .

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325212117&siteId=291194637