CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Threaded View

  1. #3
    Join Date
    May 2009
    Posts
    2,413

    Re: Lucas/Fibonacci sequence HELP please!!

    Quote Originally Posted by ckinser View Post
    System.out.printf ("Lucas #%d is %s\n", num, getLucas);
    The program doesn't look complete. Does it compile at all?

    The above print statement isn't consistent with how getLucas is defined. GetLucas is expected to return a String (%s) but it's defined to return an int. And it isn't called with any parameters at all although it's defined to be passed a double.
    Last edited by nuzzle; June 21st, 2011 at 03:08 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured