•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 427,227 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,220 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 303 | Replies: 3
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I made a project on telephone directory.
I have used single class and my reading and writing in the file is done by
fin.[write/read]((char*)&object,sizeof(object));
Now the problem is during searching a particular name or phone no. is just read the file and match the name or the phone no. in each record.
Now is there any method or way i which my searching speed is increased and it can handle large datas.
Plzz help me
I have used single class and my reading and writing in the file is done by
fin.[write/read]((char*)&object,sizeof(object));
Now the problem is during searching a particular name or phone no. is just read the file and match the name or the phone no. in each record.
Now is there any method or way i which my searching speed is increased and it can handle large datas.
Plzz help me
Yes, that's about the size and shape of it.
If you want it quicker, store it in memory.
If you want it quicker, sort it and use a binary search.
If you want it quicker, store it in memory.
If you want it quicker, sort it and use a binary search.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Sir but when write in the file at time the data is stored in the memory.
And for sorting them i tried out storing the first character of the name of the user details.
First i compare the first letter and then i compare the string this would increase the speed of the search and can it be used for heavy data search?????
plzz help
And for sorting them i tried out storing the first character of the name of the user details.
First i compare the first letter and then i compare the string this would increase the speed of the search and can it be used for heavy data search?????
plzz help
Try it and find out.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
adsense adult advertising biometrics blogging book business coding community copyright cult of the dead cow data development earth engine europe forum google hacking image recognition internet search legal malware marketing mcafee microsoft monetization msn news pagerank photo privacy publishing ratings revenue search search engine security seo sex software spyware support technical video video search web webmaster wiki yahoo
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- The Definitive Guide to which Forum Software Information (Growing an Online Community)
Other Threads in the C++ Forum
- Previous Thread: scope frustration(I think)
- Next Thread: Local timing



Linear Mode