5.11版的Dev C++项目可以正常编译,但不能运行,显示源文件未编译

 

第一个是运行报错,第二个是编译报错。

#include "Test.h"

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	Test test;
	test.show();
	
	return 0;
}



//上面是.cpp文件




#include <iostream>

class Test
{
public:
	void show()
	{
		int i;
		i=i+20;
		std::cin>>i;
		
		std::cout<<"第一个C++程序"; 
		std::cout<<i;
	}
};




//这个是.h文件