fork download
  1. #include <iostream>
  2. using std::cout;
  3.  
  4. double O[3][3];
  5.  
  6. int displaymatrixO()
  7. { cout << "O is:" << "\n";
  8. for (int n=0;n<3;n++)
  9. for (int m=0;m<3;m++)
  10. {
  11. cout << O[m][n];
  12. if (m == 2) cout << "\n";
  13. else cout << " ";
  14. }
  15.  
  16. }
  17.  
  18. FILE *opFile;
  19. int writedecrypted()
  20. { for (int n=0;n<3;n++)
  21. for (int m=0;m<3;m++)
  22. {
  23. int output_buffer=O[m][n];
  24. fputc (output_buffer,opFile);
  25. }
  26. }
  27.  
  28. int main () {
  29. O[0][0] = 49;
  30. O[1][0] = 50;
  31. O[2][0] = 51;
  32. O[0][1] = 52;
  33. O[1][1] = 53;
  34. O[2][1] = 54;
  35. O[0][2] = 3;
  36. O[1][2] = 3;
  37. O[2][2] = 3;
  38. opFile=fopen ("decrypted.txt","wb");
  39. displaymatrixO();
  40. writedecrypted();
  41.  
  42. }
  43.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty