Lastly I decided to work on the last part of every function in C++. The destructor. I saved this for last as quite simply it has the coolest name out of the bunch. This is important as it saves me a lot of steps in getting rid of unneeded data.
So I decided to build a program that is very simple to practice this very complicated concept.
So I further looked into destructors. Destructors are pieces at the end of the function that automatically run without being called. (Strostrup, 56) Also, "Destructors are always run so they are the most effective of all the data types."(Strostrup,256). So I used this to make a destructor at a program that does quick calculations primarily for Windows XP.
So what do you guys think at the end of this journey? Which programs should I make and will you guys consider ever using programming in your later lives? Once again thank you for reading and good bye!
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
Showing posts with label Tchaikovski Daniel. Show all posts
Showing posts with label Tchaikovski Daniel. Show all posts
Monday, January 25, 2016
C++ Programming Language
After managing to effectively use and distribute data, I decided to work on to vectors to further my work off what I was doing!
So once I decided to work on building vectors I had to really find out how? So I wanted to work on how to move data. I wanted to do this because I want to create a structure so I can move data easily.
Vectors are a huge part to C++. They help everything know where to go and how it can be applied in other parts of the program. Vectors are vital to the structure of all complex programs(Strostrup, 66). "Vectors are essential to moving classes and connecting a whole multitude of functions in C++. They are hugely essential in creating programs that can like other files." (Strostrup, 234).
So now that I created that, what should I do on my last structure? Do you think I should implement a different kind of vectors.
Any ideas? Thank you in advance!!
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
So once I decided to work on building vectors I had to really find out how? So I wanted to work on how to move data. I wanted to do this because I want to create a structure so I can move data easily.
Vectors are a huge part to C++. They help everything know where to go and how it can be applied in other parts of the program. Vectors are vital to the structure of all complex programs(Strostrup, 66). "Vectors are essential to moving classes and connecting a whole multitude of functions in C++. They are hugely essential in creating programs that can like other files." (Strostrup, 234).
So now that I created that, what should I do on my last structure? Do you think I should implement a different kind of vectors.
Any ideas? Thank you in advance!!
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
Labels:
C++,
Tchaikovski Daniel
C++ Programming
Last time I did this, I focused only pointers, a way to make
reference to data much easier. Now that I feel that I feel that I can do that
much better I decided to also find a way to store data directly better, sort of
in a way going backwards in my learning.
So more onto arrays, arrays being a type of variable that
can hold and distribute multiple vales rather than one. They can visualized as
a type of rows when you print them out, hence the name arrays. These are very
helpful for when the user enters multiple values, or if you want to save time
and space.
Arrays are very helpful when holding long variable values. They are used in a variety of situations. (Strostrup,81). So in my program before when I used long variable. Not only that but it says, "To use arrays it must be strongly implicated that it can be used in that context. Not only that, bust strong and dynamic classes must be created beforehand,"(Srostrup,105). I implemented this by learning classes and how to implement elements and I created a long program to hold high amounts of data below.
So now that I can store and distribute data more effectively
what should I do next? I was thinking that I now learn how to start being able to
use different parts of my computer other than my keyboard, maybe even a
function to use my mouse. Well I’ll see how that goes. Once again thank you for
reading, and feel free to ask questions!
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
Labels:
C++,
Tchaikovski Daniel
Sunday, January 24, 2016
C++ Programming Langauge
Last blog post, I
described about how I learned how to make some good and effective classes in my
C++ program. This blog post I will be doing what I wanted to work on to help
enhance my abilities at separating my data files, I wanted how to learn pointers
better.
As I mention previously when it comes to programming,
no one can directly tell you how to do it and you copy those steps. However,
you can see an example of a concept and eventually make up your own style to
integrate it into your works. This is exactly what I did when it came to
pointers.
According to Stroustrup, you need to implement them in environments where you have to reference the variable directly rather than simply make a copy of it. When describing the variable it is written, "The fundamental operation on a pointer is dereferencing (sic), that is, referring to the object pointed to by the pointer. "(Stroustrup, 89). So I then took these principles and put this into my program. I used derfrencing so I can delete junk that was already used up, by pointing directly where it was in my program.
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
Labels:
C++,
Tchaikovski Daniel
Monday, November 30, 2015
C++ Programing Language
The world is quickly changing due to fast technological advances with computers dominating every part of our lives. We always carry one around with us and we simply are dependent on computers for all future innovations. So I thought to myself, well if they're here to stay why not learn how to really control them.
So I took up the challenge of reading C++ Programing Language Third Edition by Bjarne Storstrup. With the creator of the language itself writing this book, this covered just about everything I needed to know. I did have some knowledge of programming C++ before but I did struggle however with the creation of classes and implementing them in a master program. " The fundamental idea in defining a new type is to sperate the incidental details of the implementation from the properties essential to the correct use of it. A class is a user-defined type. This section introduces the basic facilities of defining a class, creating objects of a class, and manipulating such objects." (Bjarne Storstrup,224) When it comes to programming however, it is a very creative process and to program you can't be shown and example and simply know how to do it. However when Storstrup explained the process it became very clear to me. Therefore I was easily able to develop a program which used many classes to make a simple C++ text editor.
With the reasoning provided in this book and the rationale behind the implementation of classes, I was finally able to effectively introduce some into my main program and write source code for a text editor I am working on. I used a multitude of classes, some self made and some open source. The classes are the ones with "hashtags" in front of them. They are simply collections of code I wrote in another file, but since the program runs in one file I just add it into one huge file.
With all of that said and done, I still wonder about how to use pointers more efficiently and I want start to use templates made on my own. Thank you for reading all of that hopefully I know this may be confusing to some, but it will soon be one of the most important skills you can have. If you have any questions, comments, or want clarification feel free to ask! Which skill do you think I should explore next?
Stroustrup, Bjarne. The C++ Programming Language. 4th ed. Upper Saddle River:
Addison-Wesley, 2013. Print.
Labels:
C++,
Tchaikovski Daniel
Subscribe to:
Posts (Atom)