Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- using namespace std;
- ifstream fin ("labirint.in");
- ofstream fout ("labirint.out");
- int n,m,a[21][21],t[21][21],li,ci,lf,cf,nrsol;
- int dl[]={}
- void citire ()
- {
- int i,j;
- nrsol++;
- fout<<"\n Labirint \n";
- for(i=1;i<=n;i++)
- {
- for(j=1;j<=n;j++)
- fout<<a[i][j]<<" ";
- fout<<endl;
- }
- fout<<"\n Traseul \n";
- for(i=1;i<=n;i++)
- {
- for(j=1;j<=n;j++)
- {
- fout<<t[i][j]<<" ";
- fout<<endl;
- }
- }
- }
- void traseu(int l,int c,int pas)
- {
- int ln,cn,k;
- for(k=1;k<=4;k++)
- {
- ln=l+dl[k];
- cn=c+dc[k];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement