Hallo ich habe jetzt in der 13 Klasse C++ und habe für nächste Woche eine Win32 Konsolenanwendung zu schreiben. Ich hab mich heute das erste mal mit der Sonderübung ohne Lehrer befasst und komme trotz der Fehleranzeige von VisualStudio nicht weiter
Ich hoffe ihr könnt mir helfen.
Hier meine Quelldatei:
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
double n;
int k1, k2, r, m;
cout<<"Kursnotenberechnung"<<endl;
cout<<"%%%%%%%%%%%%%%%%%%%"<<endl<<endl;
cout<<"Note 1. Klausur: ";
cin>>k1;
cout>>"Note 2. Klausur: ";
cin>>k2;
cout<<"Note Referat : ";
cin>>r;
cout<<"Muendliche Nore: ";
cin>>m;
//Rechnung
if (k1<5)&&(k2<5)&&(r<5)
n=3;
else
if (k1<5)&&(k2<5)&&(r>5)
n=4;
else
{
n=0,25*k1+0,25*k2+0,15*r+0,35*m
if (n<4)
n=4;
}
cout<<endl<<endl;
cout<<"--------------------------------"<<endl;
cout<<"Kursnote :"<<n<<" Notenpunkte"<<endl;
cout<<"--------------------------------"<<endl;
return 0;
}