How to Create A Hash Table Project in C++ , Part 1 , Setting Up the Hash Table Project

  Рет қаралды 242,643

Paul Programming

Paul Programming

Күн бұрын

In this video, I begin to create a hash table project.
Want to learn C++? I highly recommend this book amzn.to/1PftaSt
Donate bit.ly/17vCDFx
STILL NEED MORE HELP?
Connect one-on-one with a Programming Tutor. Click the link below:
trk.justanswer...
:)

Пікірлер: 71
@moonysgurl123
@moonysgurl123 10 жыл бұрын
So far I'm understanding hash tables a lot better now! I could care less about style points (as users mentioned below), I'm just trying to understand the basics of this concept! So thank you very much. Keep up the vids :)
@developermatters
@developermatters 9 жыл бұрын
Skip to 4:20 and then skip to 6:31 you're welcome
@lolshah7295
@lolshah7295 9 жыл бұрын
developermatters I found that helpful. Thanks
@GoodBalak
@GoodBalak 9 жыл бұрын
+developermatters Yo thnx!
@aivicevic
@aivicevic 9 жыл бұрын
+developermatters You're the best
@TheVerbalAxiom
@TheVerbalAxiom 8 жыл бұрын
+developermatters Gracias mi amigo. Lol
@vnnmichael
@vnnmichael 8 жыл бұрын
thanks to u. y he repeated same thing over n over n OVER :D
@davidsalinas2193
@davidsalinas2193 11 жыл бұрын
Just a style issue: you shouldn't include the standard headers in both hash.cpp and hash.h. They are standard headers so it is safe to do this. But why not just leave the standard header includes in hash.h, and have hash.cpp and main.cpp include hash.h? Also, you added the includes outside of the PP directives used to make the header safe. Should probably keep the includes within them.
@feilauren4166
@feilauren4166 9 жыл бұрын
David Salinas Why are you watching such basic tutorial videos if you already know so much about programming in C++?
@davidsalinas2193
@davidsalinas2193 9 жыл бұрын
Touche' Just refreshing my knowledge/skills.
@Ch1n4Sailor
@Ch1n4Sailor 9 жыл бұрын
+David Salinas I too... It took me 3.5 or 4 of this 8 minute video b4 I realized, It probably wasn't going to help me do any refreshing. I can't fault the guy, but I probably wouldn't be posting videos on youtude with such a limited base of experience, to put it nicely.
@aliancemd
@aliancemd 10 жыл бұрын
Please, people, don't include outside of the include guards(#ifndef..., or #pragma once)...
@sahershafiqe560
@sahershafiqe560 4 жыл бұрын
Thanks a lot Sir! ....you had explained it in detail but i, have a confusion that you are using open addressing method or separate chaining method in it????.............................Kindly replay sir it will helps me a lot.......................
@Maya-qu5wu
@Maya-qu5wu Жыл бұрын
thanks for describing the architecture!
@pepy7779
@pepy7779 9 жыл бұрын
Your lectures are really useful, thank you!
@ImmacHn
@ImmacHn 11 жыл бұрын
Man, have you cleaned your Pc's fan lately? What is that noise D:?
@zaboomafia
@zaboomafia 7 жыл бұрын
It annoyed me too! One thing you can do is install the Chrome Audio Equalizer extension "Ears: Bass Boost, EQ Any Audio!" and turn down the high pitch noises of the fan.
@chetan2981
@chetan2981 9 жыл бұрын
Hey Paul, Is it necessary to include same library files in hash.h and hash.cpp files? Isnt it sufficient to include just hash.h file in .cpp file.
@thepuregamer9105
@thepuregamer9105 8 жыл бұрын
+chetan dalal its better and more professional to have header separate from each other. This is because of how big a program can get in its future and also many other reasons.
@jubiliudu
@jubiliudu 4 жыл бұрын
i love you man, thanks!!!!!!
@TheEnlightenedWay
@TheEnlightenedWay 9 жыл бұрын
You used a Separate Chaining or? I have to do my Project in Separate Chaining but i have no idea how it looks like? Thx
@VracksTSC
@VracksTSC 8 жыл бұрын
Haven't watched the later videos yet, so not sure how the final implementation turns out, but wouldn't having the evaluated hash value modulo the size be better than dividing it? Because once you go past 1000 (for a size 100 array) it will cause an index out of range error.
@nabeelaron7527
@nabeelaron7527 6 жыл бұрын
@Paul Programming : From where did you learn CPP from , can you recommend all the books and references and methods you used , im in a desperate need for those, help
@anirudhkundu722
@anirudhkundu722 4 жыл бұрын
Im trying to learn hash tables in C , how different would it be ? or is it mostly the same?
@ΡαφαηλΝικοκαβουρας-χ5κ
@ΡαφαηλΝικοκαβουρας-χ5κ 4 жыл бұрын
Good Evening I want to ask a quastion. this project .More specifically the construction of the hash table is with open address ??? Please if you can answear quickly . Thank you!
@zypergod
@zypergod 8 жыл бұрын
you should not use std namespace in header files
@montygupta7089
@montygupta7089 7 жыл бұрын
kristoffer thomassen why?
@zypergod
@zypergod 7 жыл бұрын
if you accidentally use a function/method from another class or function #include using namespace std; struct string { const char* p; }; int main() { string x;// Error: ambiguous - which string is wanted? } The problem here is that when main() specifies string x;, the compiler's not sure whether the user-defined ::string or included std::string is wanted. Now imagine you take the top part of the program... lines 1 through 3 - up to and including the struct string... and put it into a header file which you then #include before main(). Nothing changes: you still have an error. So, just as for standalone programs, header files with using statements in them can cause trouble for other code that includes them, making some of their statements ambiguous. It can be a bigger pain though, as headers can be included - directly or indirectly - by arbitrarily huge amounts of dependent code, and... removing the using statement from the header, or a change to the contents of , or any other header affecting std:: ...might break code including the problematic header. Either problem may render dependent code uncompilable, and issues may not even be noticed until another compilation is attempted. Further, the person suffering due to the using statement may not have filesystem/code-repository permissions, corporate authority etc. to remove the using statement from the header, nor fix other affected client code. That said, if a header only has "using" inside a class or function, then there's no affect on code beyond that scope, so the potential impact of changes to std:: is dramatically reduced.
@bjjgoats
@bjjgoats 9 жыл бұрын
What is IDE?
@ezetreezy
@ezetreezy 8 жыл бұрын
+Hasan ! integrated development environment
@hamaney33
@hamaney33 7 жыл бұрын
You can think about IDE as a garage full of tools to help you work on your projects. Now, every garage is different. Some IDEs are made specifically for certain type of developments. ie: Android Studio helps you build Android apps fast but that does not mean you can not write/compile "Android" code in other ways and means. I hope this clarify the IDE concept.
@sandrok14
@sandrok14 7 жыл бұрын
It's MPLAB X I think, the same style
@SohelKatchi
@SohelKatchi 10 жыл бұрын
dude you wasted half the video just setting up the project.
@feilauren4166
@feilauren4166 9 жыл бұрын
Sohel Katchi Project set up is important for newbies and something that is often skipped. I'm glad he went through it. It's easy to skip content if you don't want to watch those two minutes.
@leontube007
@leontube007 4 жыл бұрын
Can't type this stuff into Visual Studio 2017. Spits out too many errors !!and I only got to 6:25 without compilation!
@leontube007
@leontube007 4 жыл бұрын
For example VS2017 wont let me type #incluede"hash.h" in the main.cpp
@leontube007
@leontube007 4 жыл бұрын
What kind of compiler is this guy using?
@GalinaMalakhova
@GalinaMalakhova 4 жыл бұрын
Good video.
@AquariusLoveCancer
@AquariusLoveCancer 11 жыл бұрын
What IDE are you using?
@usama57926
@usama57926 6 жыл бұрын
THANK U SIR
@montygupta7089
@montygupta7089 7 жыл бұрын
can anyone suggest me some java book to learn syntax as I know all concepts of c++ including data structure.
@najehmchirgui7968
@najehmchirgui7968 7 жыл бұрын
Thanks you so much
@321dip
@321dip 8 жыл бұрын
which editor are you using?
@hamaney33
@hamaney33 7 жыл бұрын
I believe it is Netbeans.
@kinnardhockenhull4771
@kinnardhockenhull4771 10 жыл бұрын
Why shouldn't `using namespace std` be used in a header file?
@aliancemd
@aliancemd 10 жыл бұрын
You should not open namespaces in header files because if someone inserts your header he might have name conflicts. For example you have in the std namespace the function "doSomething()", you unwrap the std namespace in your "theheader.h", someone implements a function called doSomething() in their application, than they decide to add features from your "theheader.h" function and because you unwrapped the std namespace, doSomething() from his application will conflict with std::doSomething()...
@Wourghk
@Wourghk 10 жыл бұрын
As above, if you use a namespace in a header, you're also applying that namespace to everything else in the documents that include it. That will inevitably cause conflicts.
@simonchesney3911
@simonchesney3911 4 жыл бұрын
@@Wourghk if i decide to use namespace std, or any other namespace, should i just include it in specific cpp files?
@odilesutsakhan2539
@odilesutsakhan2539 9 жыл бұрын
will this process work on a Mac too?
@thepuregamer9105
@thepuregamer9105 8 жыл бұрын
+Odile Sutsakhan Yes, if you have the xcode IDE you should be able t make a new project using the line tool command and from there select the language c++.
@varunkamani2528
@varunkamani2528 7 жыл бұрын
can anybody tell me why is there main.cpp & hash.cpp? what is the use of it? can anyone provide me some source to understand this?why there is two .cpp files?
@kuraigu12
@kuraigu12 7 жыл бұрын
Varun Kamani It's a Class file
@waqarahmad5939
@waqarahmad5939 5 жыл бұрын
www.cplusplus.com/
@Lastrevio
@Lastrevio 5 жыл бұрын
don't use "using namespace" in .h files......
@matt-i3r6w
@matt-i3r6w 5 жыл бұрын
How do I do this with vectors instead of arrays?
@simonchesney3911
@simonchesney3911 4 жыл бұрын
with vectors, the implementation should be super similar. what is your road block specifically?
@gloraayy
@gloraayy 9 жыл бұрын
please how do i do this on linux?
@viennagiannerini6808
@viennagiannerini6808 8 жыл бұрын
+Mary Omoyele stackoverflow.com/questions/24109/c-ide-for-linux
@bugajpcmr6093
@bugajpcmr6093 5 жыл бұрын
you shouldn't include the same thing so many times
@epichappy9457
@epichappy9457 11 жыл бұрын
You should not use "using namespace std" in a header file..... It is just bad practice as your users are now stuck in there.
@Fantageek
@Fantageek 11 жыл бұрын
Some machines are making noise
@mangekyo_sharingan_
@mangekyo_sharingan_ 6 жыл бұрын
my right ear died.
@PaulProgramming
@PaulProgramming 11 жыл бұрын
NetBeans
@jeanrodrigues6249
@jeanrodrigues6249 2 жыл бұрын
Pinguim
@zaynali5792
@zaynali5792 8 жыл бұрын
useless :/
why do header files even exist?
10:53
Low Level
Рет қаралды 421 М.
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 10 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 2,6 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 2,1 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 16 МЛН
Hash Tables and Hash Functions
13:56
Computer Science Lessons
Рет қаралды 1,6 МЛН
C++ Hash Table Implementation
17:41
Coding Jesus
Рет қаралды 188 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Хэш-таблицы за 10 минут
13:01
Николай Тузов — Golang
Рет қаралды 130 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 229 М.
How Strings Work in C++ (and how to use them)
19:26
The Cherno
Рет қаралды 464 М.
How to Create A Hash Table Project in C++ , Part 6 , Add Item Function
8:31
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 10 МЛН