الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

النجدة يا اخواني المحترفين با لسي ++

مغلق
بدأه maldehnee في 28 مايو 2005 · 1 رد · 472 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

Using binary tree, you are required to build a program that takes any text

document and produces an index for this document. The index should be as follows:

A

Arithmetic 1,2,10,50

B

Begin 3,7

Below 2

....

p

Program 8,9,12

All the words should be stored alphapatically from 1 to z , ignore the case sensetivity

Along with each word the lines in the document that contain the word

your program should ignore the noise words like "the","on","an"......etc.

The program should allow the user to enter any document , then build the binary tree for

that document ; search for any word. A print for the whole index should also be possible.

#2
sample output :-
what do you want to open
C:\readme.txt
contains 106 words
what do you want to do:
[1] print whole index
[2]find word
1
.:[A]:.
        able(word number 82)
        about(word number 59)
        ACE,(word number 90)
        algorithm(word number 43)
        algorithm.(word number 17)
        all(word number 67)
  
.::.
        bytes(word number 56)
        BZ2,(word number 92)

.:[M]:.
        manager.(word number 9)
        multifunctional(word number
        multimedia(word number 47)
.:[N]:.
        name(word number 102)
        number(word number 61)
.:[O]:.
        object(word number 32)
        of(word number 62)
        of(word number 103)
        offers(word number 39)
        on(word number 29)
        on(word number 97)
        optimized(word number 45)
        optional(word number 41)
        original(word number 15)
        other(word number 24)
.:[P]:.
        PC(word number 25)
        practical(word number 68)
        provides(word number 72)
        purposes,(word number 69)

.::.
        unlimited.(word number 70)
        unpack(word number 84)
        up(word number 54)
        update(word number 100)
        UUE,(word number 91)

.:[Z]:.
        Z,(word number 95)
        ZIP(word number 78)

search.zip

هذا الموضوع مغلق.

مواضيع مشابهة