Davs!
Jeg var ved at genopfirske noget C++ Console Programmering, og da jeg ikke er særlig godt, fik jeg en fejl, forstår bare ikke vhordan man retter den!!!
plz hjælp.
Her er min kode: (hehe tag jer ikke af den)
#include <iostream>
using namespace std;
void main()
{
int count=1, system=1;
cout << "Countdown\\n";
while(count!=101)
{
cout << count << "\\n";
count++;
}
cout << "Script started\\n Script will now check system!";
for(system=1; system <= 30
{
cout << "Checking " << system << "\\n";
system++;
}
cout << "System full ready";
int bog;
while(bog!=2)
{
cout << "What is julius?\\n1 - Wierd\\n2 - Cool\\n";
cin >> bog;
switch(bog)
{
case 1:
cout << "You are wierd";
break;
case 2:
cout << "Right Julius is cool!!!";
break;
default:
cout << "Write 1 or 2";
break;
}
cout << "Finish";
}
Fejlen er:
--------------------Configuration: Swithc2 - Win32 Debug--------------------
Compiling...
w.cpp
E:\\C++ Tuts\\Me\\Swithc2\\w.cpp(49) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Swithc2.exe - 1 error(s), 0 warning(s)
På forhånd tak!