Hjælp til simple kode
HejJeg er helt ny til C++, og skal bruge noget hjælp til det her kode, den vil ikke kompiler :27 parse error before `<<' token
Hjælp :D
#include <iostream.h>
int main ()
{
int x, z;
cout << "Write an number: ";
cin >> x;
cout << "Write another number: ";
cin >> z;
if (x < z)
cout << "Your first number smaller than the last your last number ";
else if (x < z)
cout << "Your first number was bigger than your last number ";
else (x == z)
cout << "Your numbers are the same ";
cout << "\n";
cout << "\n";
cout << "Your numbers are" << x << "and" << z;
cout << "\n";
cout << "\n";
cout << "Made by Dnx";
cout << "programmet er nu slut";
system ("pause");
Return 0;
}