Posts

C++:thinking: Demo

Image
 Demonstration So for my demonstration I made a small quiz application using C++ in this blog I will explain how I created this small application.       Code So in this section ill go through segments of the code and explain what is going on in that section.     So for this section of code I create two String vectors one called questions and the other called answers. Vectors are very similar to arrays where they use contiguous storage locations for their elements. But a major difference between vectors and arrays are that vectors can grow dynamically compared to an array.   This section of code is used to fill the vectors I start off by creating a String for question which is named quest and answers which is ans. The ifstream is an input stream that is used to read from the Questions.txt where I have the questions to the quiz written. After reading the file all the lines are run through a loop where each question in recording and inserted into the...
Image
Introduction Hi, my name is Dennis and I've been studying software development hoping to one day make a game. I have some knowledge in Java and now I'm hoping to expand my programming experience by learning C++. It took a long time for me to decide which language I would choose ultimately I chose C++ after doing some research I found that a lot of games today are made using C++,  one of the things at first that was stopping me from wanting to learn C++ was that a lot of people say that learning C++ can be quite difficult but after some consideration, I decided to go through with C++. So now while I'm still in school I wanted to take advantage of this opportunity to learn C++ before I graduate. In this blog, you'll be able to follow me in my journey to learning C++.   What is C++? C++ is a general purpose programming language made in 1983 by Bjarne Stroustrup it was developed with system programming and embedded, resource-constrained software and large systems to be effi...