OK, total noob in C++ here. A little help would really be appreciated. I'm getting a couple errors, and am not sure how to proceed:
Code follows:1>------ Build started: Project: 8, Configuration: Debug Win32 ------
1>Build started 11/20/2010 8:26:09 PM.
1>InitializeBuildStatus:
1> Touching "Debug\8.unsuccessfulbuild".
1>ClCompile:
1> 8C.cpp
1>d:\my docs\school\fund prog\chapter 8\8\8\8c.cpp(33): error C2106: '=' : left operand must be l-value
1>d:\my docs\school\fund prog\chapter 8\8\8\8c.cpp(50): error C2109: subscript requires array or pointer type
1>d:\my docs\school\fund prog\chapter 8\8\8\8c.cpp(55): error C2065: 'Lowin' : undeclared identifier
1>d:\my docs\school\fund prog\chapter 8\8\8\8c.cpp(57): error C2065: 'Lowin' : undeclared identifier
1>d:\my docs\school\fund prog\chapter 8\8\8\8c.cpp(57): fatal error C1903: unable to recover from previous error(s); stopping compilation
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.90
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Thanks in advance! I know this is pretty basic, but I'm trying to learn!Code:#include <iomanip> #include <iostream> using namespace std; int main() { const int Numgrade = 6; int Score [Numgrade]; int Count; int Grade; int Scorein; int av; int sum; int Lowin; // Function void Lowscore (int Grade, double Lowin[Numgrade]); { int Scorein[Numgrade]; int Lowin[Numgrade]; // Start Function Loop while (1) { if (Grade[Lowin]>Grade[Scorein]) { Lowin = Scorein; } else { } Count =Count+1; if (Count>6) break; } } // Start Main Loop cout << "Input Test Scores" << endl; while (1) { cout << "Input Test Score" << endl; cin >> Score[Numgrade]; Grade[Count] = Score; Count =Count+1; if (Count>6) break; } int Lowin; Lowscore(Grade,Lowin); av =0; while (!(Count==Lowin)) { Count =Count+1; av =(sum-Lowin)/(Numgrade-1); } cout << "Your Test Average is "+av << endl; return 0; }