C++ の学習を始めたばかりで、プロンプトで arry を表示したかったのですが、この奇妙なエラーが発生しました
これは私のコードです:
#include "stdafx.h"
#include "conio.h"
#include <iostream>
using namespace std;
void _show(char a[10][10])
{
int i,j;
for(i=0;i<10;i++)
for(j=0;j<10;j++)
cout<<a[i][j];
}
void _main(int argc, _TCHAR* argv[])
{
char a[10][10];
int i,j;
for(i=0;i<10;i++)
for(j=0;j<10;j++)
a[i][j]=0;
_show(a);
}
これはエラーです:
エラー 1 エラー LNK2019: 未解決の外部シンボル _main が関数で参照されています
エラー 2 エラー LNK1120: 1 つの未解決の外部