i want the basic differences in operation of MICROSOFT WORD document and NOTEPAD.

can any one please clarify this>?

2) in one program to select a random number between 0 to 5 i write a function as
random(0,5) ? but it is erroaneous as the system always selects 0 as the random number. how can i get random number other than zero?

11 Years
Discussion Span
Last Post by SpS

Diffrence between word and notepad...i guess u r at wrong forum

for ur other question.....
use srand(time(0)) function...it will give u random number as a seed to rand() function


You have asked about Notepad and Word twice now, but you not at all clear about what you want. Notepad and Word are completely different types of software. Notepad is just a basic text editor that doesn't support any type of text formatting. Word is a full-featured (*cough* bloated) text editor that supports the creation of advanced documents.

Now if you are asking about how the programs work programmatically, no one here will be able to answer that. In order to know how they work internally, you'd have to be familiar with the source. No one that works for Microsoft and has worked with the source for these programs will divulge the programs' internal operations on a public board.

Do you want to know how to write your own text editor similar to Notepad or Word?

You really must be more verbose about what you want. You need to ask us specific questions like "How do I make a text editor?" or "Are there any easy to use code modules that I can use to ease the creation of a text editor?"


thank you for your kind suggestions dear chrissbliss.

now, i will come in your way .my doubt is if i want to develop a text editor which is some what similar to notepad .how can i ?

and if i want a text editor which is similar to word document.how can i ?

and for every implementation we need some basic data structures.

if we use arrays,linked lists,dobly linked lists, which can serve in resulting a good editor .

please send your reply .i always welcome your suggestions.

note that this is not my own question.it was asked in interview .

waiting for reply..........


actully i want to select 7 random numbers between 0 to 9.
but those generated should not be equal.
i tried by using ur srand(time(0)) but the system shows it is error

how can i get different random numbers.
give me the pseudocode plz....

waiting for ur reply...


u need to include the header file stdlib and i guess time.h...for srand and time() function to work

whereas the logic part is concerned.....

generate a random number between 0 to 9
by using this....


and if you want that other number should not be same as any of the previous number generated then check every new random number with the previously generated number

This article has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.