Thread: Help with multi function progam

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Code:
    void display_statement (double, double, double, double, int, double);
    
    }
    
    {
    	double x;
    
    	x = Tinterest_paid(200000, 150000);
    	printf("The result is\n\n %f', X);
    
    		return 0;
    
    
    
    }
    What in the world is going on here? First of all, your braces are all screwed up. Secondly, you need to include variables names in the function parameter list - not just their types. Thirdly, you have a semicolon after the function declaration. Or is this even a function declaration? I can't really tell.

    Also, how are you using a namespace in a C program? If you intended for this to be C++, then post it in the appropriate forum.

    And then there seems to be these mysterious blocks of code which don't exist in any function. You need to stop what you are doing, and spend some time reading some C tutorials.

    Code:
    #using <mscorlib.dll>
    Are you kidding me?...

  2. #2
    Registered User
    Join Date
    Oct 2004
    Posts
    56
    I am useing .Net for the complier

    As for the rest, this is why I am asking for help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM