VC编译时,提示no compile tool is associated with the file extension错误:
原因是你目前打开的是.h文件,而C++程序中,.h的头文件是不参与编译的。
你只需要把其他.c文件或者.cpp文件,双击打开,这时在编译就不会提示了
本文解决VC编译时出现的nocompiletoolisassociatedwiththefileextension错误,通常是因为打开了.h头文件而不是.c或.cpp源文件导致。只需确保编译时打开正确的源文件即可。
VC编译时,提示no compile tool is associated with the file extension错误:
原因是你目前打开的是.h文件,而C++程序中,.h的头文件是不参与编译的。
你只需要把其他.c文件或者.cpp文件,双击打开,这时在编译就不会提示了