http://en.wikipedia.org/wiki/Rope_%28computer_science%29
On Sun, Jan 15, 2012 at 7:26 AM, Umer Farooq the.um...@gmail.com wrote:
Are the number of words in one line fixed?
On Sun, Jan 15, 2012 at 1:10 AM, uttam tiwari utmbhu...@gmail.com wrote:
what are the data structures that should be
what are the data structures that should be used to make a text editor
where we can perform following tasks:
1. insert text
2. search text
3. delete text
4. automatic line change(not mandatory)
5. undo n redo
6.cursor movement(left or right shift)
i need data structures only, kindly reply...
--
Are the number of words in one line fixed?
On Sun, Jan 15, 2012 at 1:10 AM, uttam tiwari utmbhu...@gmail.com wrote:
what are the data structures that should be used to make a text editor
where we can perform following tasks:
1. insert text
2. search text
3. delete text
4. automatic line
anshul +1 yes we have to assign some memory to the pointers
On Mon, Sep 12, 2011 at 1:19 PM, rahul vatsa vatsa.ra...@gmail.com wrote:
@Anshul +1
s,t r just pointers variables, and until u don't assign it addr of some
object, where will it keep the values for str elements which r being
@ teja bala - segmentation fault
U hav to allocate memory for c and t pointers of node type.
On Mon, Sep 12, 2011 at 12:29 PM, surender sanke surend...@gmail.comwrote:
In c++, its assigning one object to other, its calling operator= default
function,
if u overload operator= it will call urs.
Run-Time error for Segmentation Fault.
Sanju
:)
On Mon, Sep 12, 2011 at 12:29 AM, Anshul Khandelwal
anshul.dans1...@gmail.com wrote:
@ teja bala - segmentation fault
U hav to allocate memory for c and t pointers of node type.
On Mon, Sep 12, 2011 at 12:29 PM, surender sanke
Last Statement will perform bitwise copy of the operand on RHS in LHS.
It is mereley an assignment, not changing pointers. For that u need double
pointer here.
Sanju
:)
On Mon, Sep 12, 2011 at 12:38 AM, Sanjay Rajpal srn...@gmail.com wrote:
Run-Time error for Segmentation Fault.
Sanju
:)
@Anshul +1
s,t r just pointers variables, and until u don't assign it addr of some
object, where will it keep the values for str elements which r being
assigned in the code.
On Mon, Sep 12, 2011 at 3:38 AM, Sanjay Rajpal srn...@gmail.com wrote:
Run-Time error for Segmentation Fault.
Sanju
struct n { int data; struct n* next}node;
node *c,*t;
c-data = 10;
t-next = null;
*c = *t;
what is the effect of the last statement?
Is dis correct?
My Ans:- c 'll point to node t which contains garbage value in data
field and link field a null
--
You received this message because you are
pl tell me wat ur doin here... here u ve defined a variable node of type
struct n.
wat does the statement node *c ??? how can u create an instance of an
instance ?
On Mon, Sep 12, 2011 at 10:52 AM, teja bala pawanjalsa.t...@gmail.comwrote:
struct n { int data; struct n* next}node;
node *c,*t;
@sukran
dis was asked in microsoft written ?
take node *c 'll create a new node like that
On Mon, Sep 12, 2011 at 11:00 AM, sukran dhawan sukrandha...@gmail.comwrote:
pl tell me wat ur doin here... here u ve defined a variable node of type
struct n.
wat does the statement node *c ??? how
can any body give me the links to a site where good data structures
problems are available (along with solutions to the problems ) ...???
thanks in advance ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
12 matches
Mail list logo