Тёмный
Professor Hank Stalica
Professor Hank Stalica
Professor Hank Stalica
Подписаться
The purpose of this channel is to support the courses I teach or have taught at Diablo Valley College, Los Medanos College, Ohlone College, and California State University East Bay.

These videos are not a comprehensive resource. That is to say, they are supplemental resources to the courses I teach, not replacements for the courses themselves. Not all topics covered by the courses will be covered in these videos.

These videos are not intended as a replacement for reading the text or attending lectures.

Any educators who would like to use these videos for their classes are welcomed to do so.
C++ STL Tutorial:  tuples
11:23
2 месяца назад
C++ STL Tutorial: sets
14:38
2 месяца назад
C++ STL Tutorial: maps
19:32
2 месяца назад
C++ STL Tutorial: Iterators
11:28
3 месяца назад
Office Hours #5
36:11
3 месяца назад
The Stack Data Structure
21:56
4 месяца назад
Java Tutorial #18: Text Files
14:00
6 месяцев назад
Java Tutorial #17: Recursion
16:41
6 месяцев назад
Java Tutorial #16: Inner Classes
5:40
6 месяцев назад
Java Tutorial #15: Polymorphism
9:44
6 месяцев назад
Java Tutorial #14: Aggregation
10:08
6 месяцев назад
Комментарии
@user-cq4zk8mw6r
@user-cq4zk8mw6r Час назад
Hey man, welcome to you.
@user-ld8gk9io3u
@user-ld8gk9io3u Час назад
It is a very well explained and detailed video. But I am still very confused.
@nicholastreurnicht
@nicholastreurnicht 2 часа назад
Barely an inconvenience 😂
@sussyeric
@sussyeric 5 часов назад
damnnn thank you so much! very simple and easy to understand lecture on flowchart 😖!!
@ProfessorHankStalica
@ProfessorHankStalica 4 часа назад
Glad it helped!
@user-xh5sr1lc5p
@user-xh5sr1lc5p День назад
Great! finally found great prof for me to learn programming.🤩🥰🥰
@ProfessorHankStalica
@ProfessorHankStalica 4 часа назад
Glad I could help!
@user-xh5sr1lc5p
@user-xh5sr1lc5p День назад
I want to learn C++ but i do not know where to start. i searched your created playlist but i cannot find chapter 1. can you please share the link .
@ProfessorHankStalica
@ProfessorHankStalica 20 часов назад
There isn't a chapter 1 since in our text, chapter 1 is just talking about basic things like what is an IDE, what is memory, and so forth. There really isn't any coding examples. If you are following the playlists, you can start with chapter 2 play list.
@user-xh5sr1lc5p
@user-xh5sr1lc5p 12 часов назад
@@ProfessorHankStalicaOkay , Thank you so much
@thrishulh9834
@thrishulh9834 День назад
isnt that on line 8 equal to operator overloading?
@xoy5
@xoy5 2 дня назад
very good and clean video as a Chili Tomato Noodle student I give u a high five
@sebastianviecco6891
@sebastianviecco6891 2 дня назад
Could we do something like this to save some memory or just save some lines of code? Or is this less efficient? #include <iostream> using namespace std; int main() { int number = -1; while (number <= 0) { cout << "Enter a positive number: "; cin >> number; if (number <= 0) { cout << "Input must be positive. Try again! "; } } cout << "The number you entered: " << number << " "; cin.ignore(); cin.get(); return 0; }
@ProfessorHankStalica
@ProfessorHankStalica 2 дня назад
You're not saving memory, and your code actually executes twice as slow as you double the number of tests. You check number twice per iteration instead of once. Good question.
@sebastianviecco6891
@sebastianviecco6891 2 дня назад
@@ProfessorHankStalica Would you ever consider tutoring for a price? I really wanna peruse coding for a job one I go to university. And you are by far the best teacher I've seen in regards to CS. You take the time to explain all the little bits. And it's been really helpful
@hankstalica1922
@hankstalica1922 2 дня назад
@@sebastianviecco6891 You sir are too kind! I've thought about doing paid tutoring in the past, but I'm so busy at the moment I couldn't take on anything new right now.
@sebastianviecco6891
@sebastianviecco6891 2 дня назад
@@hankstalica1922 I feel like you're someone impersonating him cause of the different account.
@2mat012
@2mat012 3 дня назад
Very good explanation
@ProfessorHankStalica
@ProfessorHankStalica 2 дня назад
Thanks for liking
@Wolverine_261
@Wolverine_261 3 дня назад
Thank you so much The concept was difficult, but you explained it so well and perfectly made it f extra difficult lol
@ProfessorHankStalica
@ProfessorHankStalica 2 дня назад
Glad it helped!
@TheStRaX_
@TheStRaX_ 5 дней назад
Dont stop man, iam with you
@ahmaddowedar
@ahmaddowedar 5 дней назад
Excuse me, sir, I've tried doing it, but in the inner for loop, I started with element 0 instead of 1, and it doesn't work, can you, please, tell me what's wrong with my code? (if you have time of course) and thanks so much for the great content 💛💛 here is the code: void bubblesort(string s[], int size) { bool flag; string temp; do { swapflag = false; for (int i = 0; i < size; i++) { if (s[ i + 1 ] < s[ i ]) { temp = s[ i ]; s[ i ] = s[ i + 1 ]; s[ i + 1 ] = temp; swapflag = true; } } } while (swapflag); }
@ProfessorHankStalica
@ProfessorHankStalica 5 дней назад
Depends on what you mean by doesn't work, but most likely a logic error. Here's a video I did showing you how to find and fix logic errors: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-anhoM2eLkpc.html In your case, it's an off-by-one error, which you'll easily see if you trace your code.
@ahmaddowedar
@ahmaddowedar 5 дней назад
@@ProfessorHankStalica Thanks so much for your time and for the fast reply, I will trace it and it should solve it. Thanks again, sir ❤
@IONT781
@IONT781 5 дней назад
Great tutorial! The explanation of maps in C++ is very clear and easy to follow. Direct to the point !!!! :D
@jcdragneel
@jcdragneel 5 дней назад
Thank you. I started in a reading chapter for this topic and could not for the life of me know what was being said. Sadly the downsides of online courses, you have no one to ask questions to.
@autobynef
@autobynef 6 дней назад
"careful, he's a hero"
@anjan8614
@anjan8614 6 дней назад
Perfect sir. Thank you from INDIA. Subscribed to your channel.
@autobynef
@autobynef 6 дней назад
awesome stuff, binge watching it.
@autobynef
@autobynef 6 дней назад
gargantuan video, props!
@klaus-udokloppstedt6257
@klaus-udokloppstedt6257 6 дней назад
6:02 I would not introduce lamdas showing an '[ ] { }' example. and I would not call it the basic version, as it is a specialized version of the general form of a lamda, when it does not use/needs any arguments. I would show the general form of a lambda '[ ] ( ) { }' with its capture, the argument list and the function body. this also has the advantage to literally see, that a lamda is an unnamed function. a function has the form of 'function_name (argument-list) { function_body }', but the lambda has no function_name and is preceded by the capture, thus having the form '[ capture-list ] (argument-list) { function_body }'. recognizing such analogies helps to understand (at least for me), that lamdas are just anonymous functions (with some specialities).
@ActiveStat-st2ex
@ActiveStat-st2ex 7 дней назад
I was gone through the last problem you have mentioned, it was nicely explained, thank you ❤
@ComSci-student
@ComSci-student 7 дней назад
I owe you one. +1 sub :)
@lorddoinkus6349
@lorddoinkus6349 9 дней назад
For the getters, why are you returning "this.length" and "this.width" instead of just length and width?
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
It's a Java style thing. You could just return length or width. Java practice has you be explicit as possible out everything. If I were writing C++, I probably wouldn't use this.
@gingerman28
@gingerman28 12 дней назад
Sorry maybe I missed something but 1.85 * 1.86 = 3.44?
@ilovereadingwuxiaxianxiaat8994
@ilovereadingwuxiaxianxiaat8994 12 дней назад
So much information from one video! Thank you!
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
Glad it was helpful!
@ahmaddowedar
@ahmaddowedar 13 дней назад
Thank you so much! ❤❤
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
You're welcome 😊
@germankoga8640
@germankoga8640 16 дней назад
I have a lot of doubts, the first one would be, why are there three objetcs (ifstream,ofstream,fstream)? it did seem like fstream was like the base one and ofstream was text by default, but it seems fstream is also text by default so I don't get the point of ofstream, my other doubt would be, what would the equivalent of fseek be in binary files? also I did understand why you couldn't write the whole array in the function as the sizeof operator returned 8 bytes, what I don't understand is why that wasn't a problem before, also I don't understand why the first argument of the write method has to be of type char* casting pointer types sounds dangerous, also this is not a doubt but more of a wish, since we also saw in this video how to write to text files it would've been cool to see how to read them, another doubt is why when working with textfiles you opened it as a .dat instead of .txt and how did it work anyways, and lastly another comparison to the C function idk why the third argument of how many times to read said number of bytes was removed, it was anyways a great introductory video, but I have all this doubts
@nefyislive
@nefyislive 16 дней назад
I wish you nothing but success, professor hank
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
Thank you!
@kanishkplays100
@kanishkplays100 16 дней назад
awesome awesome videos
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
Glad you like them!
@bnhs.aesthetic5384
@bnhs.aesthetic5384 21 день назад
Thank you so much sir! This is so helpful 👍
@officialdanieldsouza
@officialdanieldsouza 22 дня назад
Excellent tutorial! I tried to understand the same concept through reading some blog articles online but didn't fully grasp the concepts that you discussed in clear, simple level of understanding in this video. Thanks again!!
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
Glad it was helpful!
@Hazem_Rabiea
@Hazem_Rabiea 24 дня назад
It's very helpful , Thank you so much!
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
You are welcome!
@-_-elif
@-_-elif 26 дней назад
Thank you so much! I was looking for latest videos on netbeans and luckily found you🤩
@ZorikaSakamishi
@ZorikaSakamishi 26 дней назад
Thanks sir i appreciate your work
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
Thanks and welcome
@josepescina4360
@josepescina4360 26 дней назад
6:45 running in CLion, c++17
@josepescina4360
@josepescina4360 26 дней назад
I'm using CLion c++17 and 4:26 this compile to me.... No need to use constexpr.... Thanks anyway
@josepescina4360
@josepescina4360 26 дней назад
thanks man
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
No problem!
@amiraelmaddah8798
@amiraelmaddah8798 Месяц назад
Thanks for your help you saved my butt
@lg7t
@lg7t Месяц назад
so professor is this is the last oop video or there is a future playlist ? and thank you very much for these videos .
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
There's a whole play list. See the video description for the link.
@lg7t
@lg7t Месяц назад
so why did we make all the destrcutors virtual should not that be just for the base class or we did it for readbilty of the code ?
@ProfessorHankStalica
@ProfessorHankStalica 9 дней назад
Best practice to make them virtual in case the class is derived from in the future.
@lg7t
@lg7t Месяц назад
one question why we use a private access specifier when inheriting the base constructor 7:58 ??
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
To force derived classes to use the public interface of the base class. This makes the class more resilient so it can't go around any type of validation code that might be in methods that make up the public interface of the base class. The downside is it is slower to access those inherited variables, but that's the trade off you make. Safety vs speed.
@lg7t
@lg7t Месяц назад
@@ProfessorHankStalica so now it is clear i thought when i make a private access specifier with inherited constructor that i can not access it publicly but now i understand that i could (so i ll call the constructor in the public interface of the base class so this will ensure that i dont make any unnecessary changes by fault when calling the constructor as it will have the specefiers and properties within the base constructor) and thanks for your time .
@vezthehoarder1753
@vezthehoarder1753 Месяц назад
Thank you so much for this video.
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
You are so welcome!
@LoofaOfDoom
@LoofaOfDoom Месяц назад
Thanks bro
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
Welcome
@littlerainyone
@littlerainyone Месяц назад
So what's the difference between an interpretation and a model in propositional logic?
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
A particular assignment of values to the variables in the model at an instance of time.
@littlerainyone
@littlerainyone Месяц назад
@@ProfessorHankStalica thank you! What prompted my question is that I heard someone talk about the world being a "model" of a formal system as if the model were itself an assignment of values to variables, whence my confusion. I encountered something similar in an Intro to Logic book I read years ago. Logicians seem to have this backwards way of talking about "models" that confuses me. In engineering, we think of models as abstractions that describe empirical data. But logicians talk as though models *were* the empirical data. I'm talking vaguely, of course, with a view from 30,000 feet up. I just want to get the general idea.
@chiyang3749
@chiyang3749 Месяц назад
we had to watch a lot of commercial before we could even begin your tutorial
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
Isn't RU-vid great?
@alexander_kozin9214
@alexander_kozin9214 Месяц назад
istn't an integer equals 8 bytes not 4?
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
4 bytes for an int, 2 bytes for a short, 1 byte for a char, and 8 bytes for a long long. Although, technically it can vary based on architecture. Most modern systems will have the above. doubles are 8 bytes and floats are 4 bytes. see: en.cppreference.com/w/cpp/language/types
@oussamabouallati
@oussamabouallati Месяц назад
Thank you sir
@ryanevery8368
@ryanevery8368 Месяц назад
Thank you professor for a clear explaination..
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
Glad it was helpful!
@najlaeelm7534
@najlaeelm7534 Месяц назад
thank you, your video was soooo helpful
@emmet3690
@emmet3690 Месяц назад
You're the GOAT prof Hank, the way you explain things is super easy to understand
@ProfessorHankStalica
@ProfessorHankStalica Месяц назад
I appreciate that!