SHARE
TWEET

Untitled

a guest Mar 20th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<iostream>
  2. #include<string.h>
  3. #include"string.h"
  4. #include<stdio.h>
  5. #include<fstream>
  6. using namespace std;
  7.  
  8. struct computers
  9. {
  10.     char cpu[10];
  11.     char gpu[10];
  12.     int hdd[10];
  13.     short int cpu_cores[10];
  14. };
  15.  
  16. void zapolnenie_txt()
  17. {
  18. ofstream db;
  19. db.open("database.db");
  20. db << "Fx-8350;" << "GTX-750;" << 2048 << ';' << 8 <<'.'<<endl;
  21. db << "I-7.8700;" << "GTX-1070;" << 1024 << ';' << 8 <<'.'<<endl;
  22. db << "I-5.4690k;" << "GTX-980;" << 4096 << ';' << 4 <<'.'<<endl;
  23. db << "Fx-6100;" << "R7-265;" << 1024 << ';' << 6 <<'.'<<endl;
  24. db.close();
  25. }
  26.  
  27. void vivod()
  28. {
  29.  
  30.  
  31.  
  32.  
  33. }
  34. int main()
  35. {
  36.     zapolnenie_txt();
  37.     system("pause");
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top