Thursday, 27 February 2014
Day 12
Today I learned how to use switch statments as a replacement for if/else statments. Switch basically takes a variable and tests its value against all of the other values.I tried remaking the Cola machine program while using switch statments but I didn't finish. Here is the site were I am getting all of my exercises from.
Wednesday, 26 February 2014
Day 11
Today I made a program that gives you 5 options of drinks and you choose your favourite one for most of the things I made there was instructions for most of it but I made this from scratch here is a PICTURE of it. I also finished downloading windows visual a new compiler for c++ and I like it alot more it makes things alot easier for people just learning c++
Tuesday, 25 February 2014
Day 11
Before today I was using codeblocks as my c++ compiler and then chris showed me how much better windows visual studios is so I started downloading that. I also looked for something I could do while downloading that and I think I want to do computer networking after I am done with c++
Wednesday, 19 February 2014
Day 10
Today I learned about "The Dark side of the internet" and I watched multiple videos on how to use the if/else statment in c++ Here is an example of an if statement. If I asked the program is 5 was greater than 3 It would said no so I would have to say if 5 is greater than 3 print yes or else print no.
Tuesday, 18 February 2014
Day 9
Today I made a program were you enter peoples ages and you can find the average age of all the people you entered for example you could get everyone in this rooms age enter it and get the average here is a screen shot of it
Age 20+40+30 is equal to 90 and there are 3 numbers and if you divide 90 by 3 you get 30 witch is what I got from the program
Friday, 14 February 2014
Thursday, 13 February 2014
Day 7
Today I watched some more tutorials and I learned how to use if/else statments I made a very basic program were you type in your age and it says something different for different age groups here is a link to that program just copy and paste it into a compiler and change your age here (In the code) int age = 101; .Pastebin
Wednesday, 12 February 2014
Day 6
Today it didnt do very much except for go threw some tutorials I learned how to use variables with classes and set values for everything. I also watched the video on what constructors are but I dont quite understand it yet so I am going to go threw it more tomorrow. Here are the videos I watched today and went threw.
first
second
Tuesday, 11 February 2014
Day 5
Today I learned how to use classes, Classes are used to separate data into groups "Classes"
Here is a simple Calculator I found it find the area of a rectangle using classes and ojbects
http://pastebin.com/G4L9Fvyz
for rect.set_values (3,4); you replace the numbers for the numbers you want to have the first number is width the second number is height
Thursday, 6 February 2014
DAY 4
Today I learned how to make variables using variable I made a simple calculator and it worked the first time I tried.
Here is the code for it if you would like to try just copy it into a compiler and compile it and you have a basic calculator
#include
using namespace std;
int main()
{
int a;
int b;
int sum;
cout << "Enter a number! \n";
cin >> a;
cout << "Enter another number \n";
cin >> b;
sum = a + b;
cout << "the sum of those numbers is " << sum << endl;
return 0;
}
Wednesday, 5 February 2014
DAY3
I got everything setup so from now on I should be able to work without any problems I didnt have much time to work to today but I learned how to make the code print simple text on the screen and ask you questions. EX.How old are you? then you can reply back. I have switched from code academy to youtube videos because I find I learn better from watching videos rather than reading the video I was watching is http://www.youtube.com/watch?v=0--4jheodFk
This guy does alot of videos on coding and I plan to finish his whole series on c++
Tuesday, 4 February 2014
Day 2
I did not get much done today because I was getting an error when trying to open the program for c++.I have decided to switch to C++ from java because after doing some research having C++ is a must for coding games and that is what I wanted to do although java can be used for coding games the kind of games that I would like to code require c++.Tomorrow hopefully the program will be running so I can get started
Monday, 3 February 2014
DAY 1
Today my friend asked me to help him code his gamer server it is very basic java scripting we are trying to add an economy to the server and we are almost done with that. I finished 15 lessons for code academy I am doing java scripting I learned that you have to be exact with your code or you will get an error also I learned that you can literally control everything the way you want it. in the next couple of classes I want to do a couple more lessons and finish the economy for the game server I will post picture results when it is done.
Subscribe to:
Posts (Atom)