你可以建立一个console工程把该.cpp文件添加进去 再编译试试
#include void main(){ printf("this is a c program\n");}注意\n在双引号里面!
又是一个路径问题!是不是提示 error spawning...!?
你那里有一个error了
printf("this is a c program.\n");这样写