帮忙指出错误
请帮忙指出如下C++.net程序中的错误// a4.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
void main()
int _tmain(int argc, _TCHAR* argv[])
{ int digit,num;
cout << "输入一个整数:";cin >> num;
cout << "反向显示结果:";
do
{ digit=num % 10;
num=num/10;
cout << digit;
} while (num!=0);
cout << endl;
return 0;
}