Tips to use a forward declaration instead of a header fille in Visual Studio generated code

Hi

When I tried to use extract method by rightclicking the sourcecode I get a menu where im able to select
“Quick acrions and refactorings” then “Extract method” Visual studio will use a forward declaration instead of using an additional header file.

btw. the forward declaration is the method name outside main .

I have used it the example PlayGame. Forward declaration for this is void PlayGame();

./ Torben Sandberg

Privacy & Terms