0

Hi, I'm new to this programming stuff and I'm going through Beginner's Guide by Herbert Schildt. In Module 4 Critical Skill 4.1 Use one-dimensional array.

#include<iostream>
using namespace std;


int main()
{

    int sample[10];// this reserves 10 integer elements
int t;

// load the array
for(t=0; t<10; ++t) sample[t] = t;

// display the array
for (t=0; t<10; ++t)
cout << "This is sample[" << t << "]: " << sample[t] << "\n";

return 0;
}

ERRORS as follows:
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
C:\Documents and Settings\Owner\My Documents\Visual Studio 2008\Projects\arrays\Debug\arrays.exe : fatal error LNK1120: 1 unresolved externals

Edited by Dani: Formatting fixed

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by Dave Sinkula
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.