Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3. ifstream fin ("labirint.in");
  4. ofstream fout ("labirint.out");
  5. int n,m,a[21][21],t[21][21],li,ci,lf,cf,nrsol;
  6. int dl[]={}
  7. void citire ()
  8. {
  9. int i,j;
  10. nrsol++;
  11. fout<<"\n Labirint \n";
  12. for(i=1;i<=n;i++)
  13. {
  14. for(j=1;j<=n;j++)
  15. fout<<a[i][j]<<" ";
  16. fout<<endl;
  17. }
  18. fout<<"\n Traseul \n";
  19. for(i=1;i<=n;i++)
  20. {
  21. for(j=1;j<=n;j++)
  22. {
  23. fout<<t[i][j]<<" ";
  24. fout<<endl;
  25. }
  26. }
  27. }
  28. void traseu(int l,int c,int pas)
  29. {
  30. int ln,cn,k;
  31. for(k=1;k<=4;k++)
  32. {
  33. ln=l+dl[k];
  34. cn=c+dc[k];
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement