- 467
- 2 904 668
Professor Hank Stalica
United States
Registrace 9. 11. 2013
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.
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++ Tutorial: Finding Classes and their Responsibilities [10]
Learn how to identify classes and their responsibilities in software design. This tutorial covers techniques for defining roles, methods, and interactions to create well-structured and maintainable code.
// Join our message board:
professorhank.freeforums.net/
// Join this channel to get access to perks:
czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin
// Consider supporting this channel in multiple ways
ko-fi.com/professorhank
wise.com/pay/me/henrys814
paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
// Join our message board:
professorhank.freeforums.net/
// Join this channel to get access to perks:
czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin
// Consider supporting this channel in multiple ways
ko-fi.com/professorhank
wise.com/pay/me/henrys814
paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
zhlédnutí: 192
Video
C++ STL Tutorial: for_each, count_if, all_of range processing functions
zhlédnutí 189Před 21 dnem
Learn to use C algorithm library functions for_each, count_if, and all_of to process ranges of values. This tutorial covers their syntax, usage, and practical examples for efficient data handling. Examples provided using Visual Studio Community. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljo...
C++ Tutorial: How to use Replit to write C++ programs
zhlédnutí 180Před 28 dny
Discover how to write and run C programs using Replit. This tutorial covers setup, coding, and execution, making online C development easy and accessible for beginners and advanced users alike. Replit (www.replit.com) is a website that provides online IDEs for all sorts of languages, include C . // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks...
C++ STL Tutorial: sort() and binary_search() algorithm functions
zhlédnutí 127Před 28 dny
Learn to use C sort and binary_search functions from the algorithm header, optimizing data organization and retrieval. This tutorial covers syntax, usage, and practical examples for efficient coding. Examples provided using Visual Studio Community. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htm...
C++ STL Tutorial: tuples
zhlédnutí 166Před měsícem
Master C tuples with this tutorial, exploring creation, access, and manipulation techniques. Enhance your understanding of handling multiple values in a single variable efficiently in C . Examples provided using Visual Studio Community. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Con...
C++ STL Tutorial: sets
zhlédnutí 171Před měsícem
Master C sets in this tutorial, covering their uses, key functions, and practical examples. Learn how to efficiently store and manipulate unique elements in your C programs. Examples provided using Visual Studio Community. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider supporti...
C++ STL Tutorial: maps
zhlédnutí 287Před měsícem
Master C maps in this tutorial: learn key-value pair storage, insertion, access, and traversal, with practical examples to enhance your coding and data handling skills in C . Examples provided using Visual Studio Community. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider support...
C++ STL Tutorial: Iterators
zhlédnutí 255Před měsícem
Learn how to effectively use C iterators in this tutorial, covering basics, types, and practical examples to enhance your coding skills and improve data manipulation in C . Examples provided using Visual Studio Community. // Join our message board: professorhank.freeforums.net/ // Consider supporting this channel in multiple ways ko-fi.com/professorhank wise.com/pay/me/henrys814 paypal.me/hanks...
Java Tutorial: How to fix Could not find or load main class error in NetBeans
zhlédnutí 313Před měsícem
If you're writing a Java program and have a problem compiling and the Output tells you: Error: Could not find or load main class Caused by: java.lang.ClassNotFoundException I'm going to show you why it happens and how to fix it in this video. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin ...
Office Hours #5
zhlédnutí 138Před měsícem
Shoutouts and announcements. // Professor Hank ko-fi: ko-fi.com/professorhank/shop // AI Playlist: czcams.com/play/PLaatXkJEXKyJjYYOrWrmVPNbWvs_sRgmm.html&si=HupJ_Uf3XluAnDty // Join our message board: professorhank.freeforums.net/ // Consider supporting this channel in multiple ways czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin paypal.me/hankstalica1 Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs9...
The Stack Data Structure
zhlédnutí 158Před 2 měsíci
Dive deep into the stack data structure with this enlightening tutorial video. Understand its principles, operations, and efficiency in Java programming. Join Professor Hank as he guides you through mastering stacks efficiently. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider su...
The Queue Data Structure isEmpty and clear Algorithms (Part 4 of 4)
zhlédnutí 97Před 2 měsíci
Unlock the secrets of the queue data structure in this comprehensive tutorial video. Delve into its functionality, operations, and applications in Java programming. Let Professor Hank be your guide to mastering queues efficiently. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider ...
The Queue Data Structure Peek Algorithm (Part 3 of 4)
zhlédnutí 75Před 2 měsíci
Unlock the secrets of the queue data structure in this comprehensive tutorial video. Delve into its functionality, operations, and applications in Java programming. Let Professor Hank be your guide to mastering queues efficiently. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider ...
The Queue Data Structure Dequeue Algorithm (Part 2 of 4)
zhlédnutí 67Před 2 měsíci
Unlock the secrets of the queue data structure in this comprehensive tutorial video. Delve into its functionality, operations, and applications in Java programming. Let Professor Hank be your guide to mastering queues efficiently. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider ...
The Queue Data Structure Introduction and Enqueue Algorithm (Part 1 of 4)
zhlédnutí 155Před 2 měsíci
Unlock the secrets of the queue data structure in this comprehensive tutorial video. Delve into its functionality, operations, and applications in Java programming. Let Professor Hank be your guide to mastering queues efficiently. // Join our message board: professorhank.freeforums.net/ // Join this channel to get access to perks: czcams.com/channels/-RZhAum87am1bsFAJ_HV-g.htmljoin // Consider ...
Doubly Linked lists Tutorial #5: removing a node from the list (updated)
zhlédnutí 85Před 3 měsíci
Doubly Linked lists Tutorial #5: removing a node from the list (updated)
Doubly Linked lists Tutorial #4: inserting a new node into the list (updated)
zhlédnutí 44Před 3 měsíci
Doubly Linked lists Tutorial #4: inserting a new node into the list (updated)
Doubly Linked lists Tutorial #3: removing the list from memory (updated)
zhlédnutí 76Před 4 měsíci
Doubly Linked lists Tutorial #3: removing the list from memory (updated)
Doubly Linked lists Tutorial #2: searching a doubly linked list (updated)
zhlédnutí 53Před 4 měsíci
Doubly Linked lists Tutorial #2: searching a doubly linked list (updated)
Doubly Linked lists Tutorial #1: Intro and appending a Node to the list (updated)
zhlédnutí 84Před 4 měsíci
Doubly Linked lists Tutorial #1: Intro and appending a Node to the list (updated)
Linked Lists Tutorial #5: inserting a node into a linked list (Updated)
zhlédnutí 101Před 4 měsíci
Linked Lists Tutorial #5: inserting a node into a linked list (Updated)
Linked Lists Tutorial #4: removing a node from a linked list (Updated)
zhlédnutí 97Před 4 měsíci
Linked Lists Tutorial #4: removing a node from a linked list (Updated)
Linked Lists Tutorial #3: removing a linked list from memory (Updated)
zhlédnutí 133Před 4 měsíci
Linked Lists Tutorial #3: removing a linked list from memory (Updated)
Linked Lists Tutorial #2: searching a linked list (Updated)
zhlédnutí 184Před 4 měsíci
Linked Lists Tutorial #2: searching a linked list (Updated)
Linked Lists Tutorial #1: Intro and append algorithm (Updated)
zhlédnutí 330Před 4 měsíci
Linked Lists Tutorial #1: Intro and append algorithm (Updated)
Why bald guy is always so fantastic af
Now this concept is my academic weapon for the OOP theory exam. Loved it
professor is there any assignment that would help us in each lesson ? and THANKS FOR YOUR EFFORT
Yes, but to see them, you need to be in my class and you are welcome.
@@ProfessorHankStalica how is thay possible ?
thank you
Welcome!
Very good , clear and simple explanation !!! good job... I also saw this line srand(time(NULL)); on top of the main function for this to not generate the same number all the time
You are the best. I watched many videos before finding yours. Thank you very much.
Glad you like them!
great content helps alot in understanding the textbook
clear + simple = thank you so much
Glad it helped!
hello elliot
So clear for me. Thank you so much Prof!
You are welcome!
Thank you SO much
You're welcome!
Where can I check the answers of this book question?
Thanks for this video. I have a question about multiple casting Here is an example: int array[5]{}; array[0] = 1; array[1] = 2; Is it possible to keep the pointer arithmetic here as "int" but assign only a byte? So that "= 1" and "= 2" would be treated as a single byte/char instead of an int.
You could store the 1 or 2 in a char variable, or you could use bitwise operators to store 1 in the high byte and 2 in the low byte of an unsigned short, for example.
@@ProfessorHankStalica Thanks for the answer. I tried to assign it to a temporary variable of type char then assign it, the same result; the compiler still treats it as an int and so the other 6 bits are filled with zeros. What worked for me is this: *(char*)(int*)&array[0] = 1; *(char*)(int*)&array[1] = 2; Here the pointer arithmetic is maintained but only a single byte is copied but I'm not sure if this is safe way of doing it.
Why not just make an array of chars? char nums[size]; nums[0] = 1; 1 is stored in a single byte then.
@@ProfessorHankStalica Because I'm dealing with different types in the array. It's like a low level memory access like assembly stack where you can store 1 , 2 or 4 bytes.
Sounds like you need an array of unions possibly: czcams.com/video/mKXFx600vR0/video.htmlsi=g5Fa7HqLf74RXLo8 union Foo { char c; short s; int i; }; Foo stuff[10]; That would allow you to store 1, 2, or 4 bytes in each element of you array.
Thank so much ❤
You're welcome 😊
when i create a new file in a repel it and writes code it shows that main cannot be written again.What should I do
Make a new project? You can't have two mains in the same project.
// While practicing functions, I encountered an error. Can you explain why? // I tried using `void` as an argument in the function call. // Why can't `void` be used this way, and what is the proper way to call a function that takes no arguments? void myFunction(void) { // Function body } int main() { myFunction(void); // Why is this incorrect? return 0; }
void isn't an identifier for any type of argument. The proper way to call a function without passing any arguments is to leave the argument list empty, such as: myFunction(); Function header would be void myFunction() { } Using void as in your example is a C thing and is considered bad practice in C++. Although in the function header in C++ void foo() means basically the same as void foo(void) in C. From what I remember it was a standards decision thing and has to do with how early C was developed way back when, but my memory is fuzzy on that.
@@ProfessorHankStalica Thank you so much sir
Professor can you think about it kind of like referencing
If you are referring to something like this: a->b->c; or in Java when you do stuff like a.b.c; I suppose you could. Maybe a better way of thinking about it is more like aggregation or the "has-a" relationship.
just made things easier thank you very much
You're welcome!
thank you so much for this explanation of pure virtual functions!
Glad it was helpful!
Thanks prof!
You bet!
I'm more curious. Can you make a series on a simple Pong Game with no graphics engine. Using only Ascii Characters. Is it possible ? I never tried but theory wise. It should be possible. Let you pick the game. Cheers
Keep It up Professor
I'm confused why getting through the loop guarantees a solution. If we take the map coloring example and use two colors, we would get through the loop, since for each pair of nodes, we can always color them differently. However, the map is not two colorable so there is not a solution even though we got through the loop.
Great video but the numbers in that vector sound familiar.
I can't imagine why...
I am watching your explanation from Jordan. Thank you and I hope you become a Muslim💫💫
Well thank you for watching and WELCOME! I hope you are well in Jordan! (And I hope you become an atheist ⚛⚛⚛)
Python sort function the same.
Yup. Pretty much.
This site looks interesting. Would be better if this was AI powered and would make suggestions after running your code. Then you could compile it for your project to test.
It already does, been using it since 2019 😊
It's cool to have my students use it because it does enough for beginners without a bunch of stuff to get in the way of the more feature rich IDEs.
First here!
😊
second!
First!
😂🍻
Professor Hank makes it look so easy.
It is easy. 🙂 Just read your textbook and then write a few programs and you'll get it in not time!
Thanks for sharing amazing knowledge....❤👍
Thanks for liking!
Thanks ❤
You are wonderful sir... How are you... You are the first reason I love programming in C++... and I want to ask you what is best if you want to make network software. Do I continue with C++ or move to Java or do you have another opinion?
Thank you for the kind words! As far as which language to move on to, whichever you need based on the needs of your project. Languages aren't rally all that important in the overall scheme of things. If you feel comfortable with C++, then to gain a better understanding of programming and how computers work, then it might be time to start looking at some version of Assembly programming.
Thanks ❤
You're welcome 😊
انت رائع سيدي ... كيف حالك ... انت السبب الأول في حبي للبرمجة بلغة C++ ... وأريد أن أسألك ما الأفضل اذا اردت عمل برمجيات شبكية هل استمر في C++ ام انتقل ل Java ام لديك رأي آخر
Thanks
I CAN'T HEAR YOU (great explanation though)
I know, the hardware quality I had on earlier videos wasn't so good. Hopefully, you'll notice it's better in later videos.
what is this applicalion
Visual Studio Community 2022: czcams.com/video/we0uAQ8otLQ/video.html
Great video really helped me understand!
Glad it helped!
Excellent explanation, I love how meticulous you were when describing all the ins and outs. Great video!
Thanks so much!
Thx Bro, nice video! What is the IDE btw?
Glad you liked it! The IDE is Visual Studio Community 2022.
Thank you!
You are welcome. I'm glad you found it useful.
thanks Heisenberg
I am the one who CODES!
I am wondering how Tv image live enhancer program is working.Please explain it.
Thank you.
You're welcome!
#include <bits/stdc++.h> using namespace std; void random(int*&c,int*&d) { int p=7,q=8; c=&p; d=&q; } int main() { int a=2,b=3; int *c=&a,*d=&b; random(c,d); cout<<*c<<" "<<*d<<endl; cout<<*c<<" "<<*d<<endl; return 0; } //Sir,in the 14th and 15th line I wrote the same line to print,,but got different outputs,why?
After creating a header file, what is the best way to use it in another project? Do I just need to create a new header file and copy and paste the code over each time?
very clear explanation, appreciate sharing video with us 😀
The best quick start tutorial for LISP that I've seen, ever. Thanks.
Glad it was helpful!