[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Visitor here is a gedit user; how to interest him in Emacs?
From: |
Marc Mientki |
Subject: |
Re: Visitor here is a gedit user; how to interest him in Emacs? |
Date: |
Wed, 08 Dec 2010 15:23:03 -0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 |
Am 05.08.2010 08:12, schrieb David Combs:
every time I try to show him some Emacs concep, he says
that he can do that in gedit also.
Then let it do the following. C code is given with matrix declaration as:
int matrix[3][3];
but someone has used the 1-based indexing instead of C 0-based:
matrix[1][1] = 2;
matrix[1][2] = 6;
matrix[1][3] = 1;
matrix[2][1] = 9;
matrix[2][2] = 5;
matrix[2][2] = 12;
matrix[3][1] = 11;
matrix[3][2] = 0;
matrix[3][2] = 7;
It is simply a bug so the task is to convert this to:
matrix[0][0] = 2;
matrix[0][1] = 6;
matrix[0][2] = 1;
matrix[1][0] = 9;
matrix[1][1] = 5;
matrix[1][1] = 12;
matrix[2][0] = 11;
matrix[2][1] = 0;
matrix[2][1] = 7;
In general, there may be hundreds or thousands of references to matrix,
so the solution must be intelligent enough that such things are not
taken into account:
Amatrix[1][2]
InMatrix[2][1]
_matrix[2][2]
matrix[2][1][2]
a_matrix[3][1]
.matrix[3][2]
But this very well:
+matrix[1][3]
- matrix[3][2]
Can Gedit process such thing?
regards
Marc
- Visitor here is a gedit user; how to interest him in Emacs?, David Combs, 2010/12/08
- Re: Visitor here is a gedit user; how to interest him in Emacs?, Elena, 2010/12/08
- Re: Visitor here is a gedit user; how to interest him in Emacs?,
Marc Mientki <=
- Re: Visitor here is a gedit user; how to interest him in Emacs?, Marc Mientki, 2010/12/08
- Re: Visitor here is a gedit user; how to interest him in Emacs?, Elena, 2010/12/08
- Re: Visitor here is a gedit user; how to interest him in Emacs?, despen, 2010/12/08
- Re: Visitor here is a gedit user; how to interest him in Emacs?, TheFlyingDutchman, 2010/12/08