| | |
missing function header
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2004
Posts: 12
Reputation:
Solved Threads: 0
i can't get this to run. my math functions at the end have messed up logic.
and the superfluous function headers and such. i don't think the math output is linked to the desired output of the payment.
and the superfluous function headers and such. i don't think the math output is linked to the desired output of the payment.
C++ Syntax (Toggle Plain Text)
#include <iostream.h> #include <math.h> #include <cstdlib> #include <iomanip> //here i am just throwing stuff in to try and fix the "missing function header" int main( ) { double months, amount, rate; double MonthlyPayment (double amount, double rate, int months); int GetChoice(void); int option; option = GetChoice(); { cout << "Enter the loan amount: "; cin >> amount; cout << "Enter the interest rate (X.Y): "; cin >> rate; cout << "Enter the length of the loan in months : "; cin >> months; cout << "\tYour monthly payment is $ "; option = GetChoice(); } return 0; } int GetChoice(void) { int num; cout << endl; cout << "1. Calculate your monthly payment on the loan." << endl << "You will enter the loan amount, Interest rate, and Length of the loan" << endl; cout << "0. Exit the program" << endl; cout << "Press 1 to procede : "; cin >> num; return num; } { int (amount * months) / rate = MonthlyPayment; return MonthlyPayment; }
![]() |
Similar Threads
- error C2447: '{' : missing function header (old-style formal list?) (C)
- error C2447: '{' : missing function header (old-style formal list?) please help. (C++)
- error C2447: '{' : missing function header (old-style formal list?) (C++)
- error C2447: '{' : missing function header (old-style formal list?) (C++)
- error C2447: '{' : missing function header (old-style formal list?) (C++)
- error C2447: missing function header (old-style formal list?), what does this mean?! (C++)
Other Threads in the C++ Forum
- Previous Thread: Question regarding reading from registry (Win32) VC6
- Next Thread: How do you write a code which compiles in c but not in c++?
Views: 7647 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





