#include <iostream>
#include <fstream>
#include <cstdio>
int main();
int PLAYER_INPUT()
{
int i;
cout << "Wybierz gracza : "; cin >> i;
ofstream new_player;
switch(i)
{
case 1: new_player.open("C:\\player1.txt");
P1_PLAYERS *wsk; wsk = P1_PLAYERS; break;
case 2: new_player.open("C:\\player2.txt");
P2_PLAYERS *wsk; wsk = P2_PLAYERS; break;
default : cout << "Debil..." << endl;
}
w tym krótkim kodzie wywala to, że wskaźnik nie jest zadeklarowany :
C:\Documents and Settings\Administrator\Desktop\BasketSemestr\playerload.h||In function int PLAYER_LOAD()':| C:\Documents and Settings\Administrator\Desktop\BasketSemestr\playerload.h|32|error:
wsk' undeclared (first use this function)|
C:\Documents and Settings\Administrator\Desktop\BasketSemestr\playerload.h|32|error: (Each undeclared identifier is reported only once for each function it appears in.)|
C:\Documents and Settings\Administrator\Desktop\BasketSemestr\playerinput.h||In function int PLAYER_INPUT()':| C:\Documents and Settings\Administrator\Desktop\BasketSemestr\playerinput.h|18|error:
wsk' undeclared (first use this function)|
== Build finished: 3 errors, 0 warnings ===
nie mam pojęcia co jest źle, pomóżcie.
z góry dzięki