|
From: <jos...@ya...> - 2001-01-19 15:51:06
|
> Hi
> I am a student learning c++ and have written a program to displace
> fibonacci numbers till the value entered by the user. This program
> doesnt compile in DevC++ showing some linker errors however it does
> compile in Visual c++. Any Ideas on whats wrong ?
> Thanks
> Devik
>
> Here's the code
>
> /* This Program Displays N Fibonacci Numbers */
> #include
>
> > void main()
> {
> int c,a=1,b=1,newno,n;
> cout> cin>>n;
> cout> cout> for(c=2;c> {
> newno=a+b;
> a=b;
> b=newno;
> cout>
> }
>
Try to use the correct main function.
int main()
{
// your code here
return 0;
}
Cheers,
Chemanuel
El rincón de Chemanuel - Resources for Windows programming in C++
---------------------------------
Do You Yahoo!?
Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. |