问题
That's pretty much my question: can VS 2010 check and update header files in C++ code automatically? And can VS 2010 automatically generate a cpp file from a header file, saving you the time to copy the function definitions from the header file? I mean, can it figure that there's no implementation for some method and generate an empty stub from the declaration found in the header file?
Thanks!
CFP.
回答1:
No this feature does not exist in the Visual Studio C++ implementation. Changes to a header file must be manually propagated to the source file and vice versa.
来源:https://stackoverflow.com/questions/3764460/can-vs-2010-check-update-header-files-automatically