--Configuration: classes3 - Win32 Debug--
Compiling...
classes3.cpp
C:\Documents and Settings\Niclas\Skrivbord\Codeing\Träning\Nr 4\classes3\classes3.cpp(21) : fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
Error executing cl.exe.
classes3.exe - 1 error(s), 0 warning(s)
I tried to go to the Technical Support but it told me to reainstall MSDN ?!?! What should I do?
Btw here's the code (its very basic... just traning):
//Class test #2
#include <iostream>
#include <iomanip>
using namespace std;
class Soldier
{
public:
Soldier();
~Soldier();
void setsoldier (int a);
int readsoldier();
protected:
int currentsoldier;
};
Soldier::Soldier
{
currentsoldier = 0;
}
Soldier::~Soldier
{
}
void Soldier::setsoldier (int a)
{
currentsoldier = a;
}
int Soldier::readsoldier()
{
return currentsoldier;
}
int main()
{
Soldier Sold1;
Sold1.setsoldier (500);
cout << endl
<< "You have " << Sold1.readsoldier << " soldiers"
<< endl;
return 0;
}


