vendredi 1 mai 2015

goto statement between methods C++

I am running some code to quickly test. I know I would almost never use a goto statement, but I need to test if certain parts of a method work at a certain period of time, and I'm just curious. I know that I can jump between lines of code in visual by right clicking in a method and say go to cursor, or a goto statement inside of that method, but what if I want to test certain code at a certain time, In a different method? If I wanted to see if it would work in a given situation without recreating that line of code? I read http://ift.tt/1I3Txfq about goto statements, but when trying it in between class methods, it won't recognize the statement. I guess I could try method calls and goto's, but I'm really curious for curiosity sake for one, and two it isn't like I'm using the code. I just need to test something quickly.

Aucun commentaire:

Enregistrer un commentaire