Started over with new errors now

Sep 24, 2016 at 2:23pm
i recently commented out all of my code so that it can compile so i can take it step my step slowly uncommenting the code. now i am stuck with these errors and not sure what they mean and can't find a solution. i got my prototypes but that doesn't seem to fix it.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  
Program1.cpp:27: error: expected ‘,’ or ‘...’ before ‘int’
Program1.cpp:357: error: expected ‘,’ or ‘...’ before ‘int’
Program1.cpp: In function ‘void switchStatement(int, int, int)’:
Program1.cpp:357: error: new declaration ‘void switchStatement(int, int, int)’
Program1.cpp:27: error: ambiguates old declaration ‘int switchStatement(int, int  , int)’
Program1.cpp:359: error: ‘curSeason’ was not declared in this scope
Program1.cpp:361: error: ‘dailyWeaRec’ was not declared in this scope
Program1.cpp:361: error: ‘winterOut’ was not declared in this scope
Program1.cpp:361: error: ‘CreateOutputRec’ cannot be used as a function
Program1.cpp:362: error: ‘curYearStats’ was not declared in this scope
Program1.cpp:362: error: ‘winterStats’ was not declared in this scope
Program1.cpp:362: error: ‘ComputeStats’ cannot be used as a function
Program1.cpp:365: error: ‘springOut’ was not declared in this scope
Program1.cpp:365: error: ‘CreateOutputRec’ cannot be used as a function
Program1.cpp:366: error: ‘springStats’ was not declared in this scope
Program1.cpp:366: error: ‘ComputeStats’ cannot be used as a function
Program1.cpp:369: error: ‘summerOut’ was not declared in this scope
Program1.cpp:369: error: ‘CreateOutputRec’ cannot be used as a function
Program1.cpp:370: error: ‘summerStats’ was not declared in this scope
Program1.cpp:370: error: ‘ComputeStats’ cannot be used as a function
Program1.cpp:373: error: ‘CreateOutputRec’ cannot be used as a function
Program1.cpp:374: error: ‘fallStats’ was not declared in this scope
Program1.cpp:374: error: ‘ComputeStats’ cannot be used as a function
Sep 24, 2016 at 2:26pm
i think it has to do with this code right here

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

void switchStatement(int CreateOutputRec,int ComputeStats,int fallOut, int WINTER, int SPRING,int SUMMER, int FALL, int curSeason, int dailyWeaRec, int winterOut, int CreateOutputRec, int curYearStats, int winterStats, int ComputeStats, int springOut, int springStats, int summerOut, int fallStats)
{
	switch (curSeason){ 
 			case (WINTER):	
                cout << CreateOutputRec(dailyWeaRec, winterOut);
                        ComputeStats(dailyWeaRec, curYearStats, winterStats);
                        break;
			case (SPRING):	
                cout << CreateOutputRec(dailyWeaRec, springOut);
                        ComputeStats(dailyWeaRec, curYearStats, springStats);
                        break;
			case (SUMMER):	
                cout << CreateOutputRec(dailyWeaRec, summerOut);
                        ComputeStats(dailyWeaRec, curYearStats, summerStats);
                        break;
			case (FALL):	
                cout << CreateOutputRec(dailyWeaRec, fallOut);
                        ComputeStats(dailyWeaRec, curYearStats, fallStats);
                        break;
                        
            default:
                cout << "an error accorded";
    }
                return;                        
}                         
Sep 24, 2016 at 2:28pm
and this is line 27

1
2
3
4
5
6
7
8

int ReadyFiles(ifstream& tempData, ifstream& atmData, ifstream& precData, ofstream& winterOut, ofstream& springOut, ofstream& summerOut, ofstream& fallOut);
int ReadData(ifstream& tempData, ifstream& atmData, ifstream& precData, int WeatherData, int dailyWeaRec, bool& validDate);
int OutputStats (int& curSeason,int& curYearStats,int& winterStats,int& springStats,int& summerStats,int& fallStats);

int switchStatement(int CreateOutputRec,int ComputeStats,int fallOut, int WINTER, int SPRING,int SUMMER, int FALL, int curSeason, int dailyWeaRec, int winterOut, int CreateOutputRec, int curYearStats, int winterStats, int ComputeStats, int springOut, int springStats, int summerOut, int fallStats);

Sep 24, 2016 at 2:31pm
Please don't start a new topic for same problem'

http://www.cplusplus.com/forum/beginner/198242/

also you didn't posted your whole code here
Sep 24, 2016 at 3:00pm
if my code is over 8000 characters long, how do i post it?
Sep 24, 2016 at 3:03pm
multiple post, or paste it in pastebin.com and post the link
Topic archived. No new replies allowed.