Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string.h>
- #include"string.h"
- #include<stdio.h>
- #include<fstream>
- using namespace std;
- struct computers
- {
- char cpu[10];
- char gpu[10];
- int hdd[10];
- short int cpu_cores[10];
- };
- void zapolnenie_txt()
- {
- ofstream db;
- db.open("database.db");
- db << "Fx-8350;" << "GTX-750;" << 2048 << ';' << 8 <<'.'<<endl;
- db << "I-7.8700;" << "GTX-1070;" << 1024 << ';' << 8 <<'.'<<endl;
- db << "I-5.4690k;" << "GTX-980;" << 4096 << ';' << 4 <<'.'<<endl;
- db << "Fx-6100;" << "R7-265;" << 1024 << ';' << 6 <<'.'<<endl;
- db.close();
- }
- void vivod()
- {
- }
- int main()
- {
- zapolnenie_txt();
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement