Mam kod który nie działa wyskakuje taki błąd:::::::::
||=== Build file: "no target" in "no project" (compiler: unknown) ===|
ld.exe||cannot open output file C:\Users\jk\OneDrive\Pulpit\mnf\main.exe Permission denied|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
::::::::::::Nie wiem jak to naprawić! Wie ktoś może jak naprawić ten kod na dole?
|
|
\ /
#include <iostream>
#include<fstream>
#include<cstdlib>
#include<windows.h>
#include <cstdio>
#include <conio.h>
using namespace std;
char wybor;
int main()
{
for(;;)
{
cout << "Co chcesz zrobic?" << endl;
cout << "1.Zarejestruj sie" << endl;
cout << "2.Zaloguj sie" << endl;
cout << "3.Wyjscie" << endl;
wybor=getch();
switch(wybor)
{
case '1':
system("cls");
string nazwauzy, haslo, imie, nr_tel;
ofstream baza("bazadanych.dll", ios::app);
baza << "-------------------------------------------------"<<endl;
cout << " Nazwe Uzytkownika:";
cin >> nazwauzy;
baza << "Nazwa Uzytkowanika: " <<nazwauzy <<endl;
cout << " Haslo:";
cin >> haslo;
baza << "Haslo: " <<haslo <<endl;
cout << " Imie I Nazwisko:";
cin >> imie;
baza << "Imie I Nazwisko: " <<imie <<endl;
cout << " Numer Telefonu:";
cin >> nr_tel;
baza << "Numer Telefonu: " <<nr_tel <<endl;
system("cls");
baza.close();
break;
}
return 0;
}
}