So this whole C++ programming thing is new to me I'm working on this code for a class but i'm stuck and don't know how to fix it i'm using microsoft visual C++ 6.0 heres the error i get:
error C2447: missing function header (old-style formal list?) and heres the code
help of course will be greatly appreciated because i'm really at a lossCode:#include <iostream> using namespace std; void main(void); { int num1=34, int num2=112; float sum, float avg; cout << "+------------------------+" << endl; cout << "| My Name is Rashad Bell |" << endl; cout << "+------------------------+" << endl: cout << endl; cout << " num1 equals " << num1 << " num2 equals " << num2 << endl; sum = num1 + num2; cout << " sum equals " << sum << endl; avg = sum / 2; cout << " sum equals " << sum << endl; }