Results 1 to 3 of 3
Thread: C++
Hybrid View
-
3rd January 2015 19:00 #1Registered User
Join Date: Jun:2011
Location: shumen
Posts: 13
C++
, .
Code:void Add() { ofstream file; file.open("Zakuski.txt", ios::app); cout << "\n Broi zapisi, koito shte se dobavqt: "; int br; cin >> br; for(int j=i;j<br; j++) { cout << "\n Dobavqne na zapis:"<<i+1<<"\n"; file <<"\n Zapis"<<"\n"; cout << "\n Ime na artikul: "; cin >> ar[i].ime; file <<"\n Ime:"<<ar[i].ime; cout << "\n Cena: "; cin >> ar[i].cena; file << "\n Cena: "<<ar[i].cena; cout << "\n Teglo:"; cin >> ar[i].teglo; file <<"\n Teglo:" <<ar[i].teglo <<"\n"; i++; file.close(); } }
, . , 3 , , , .
-
3rd January 2015 19:32 #2
-
3rd January 2015 19:44 #3Registered User
Join Date: Jun:2011
Location: shumen
Posts: 13
, -
. !




Reply With Quote

Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in