Author Archives: Salvador García

Input and output in C++

Now this video is for 10 I have a post of this already, but as always a video is a better learning tool for some people.

Here’s the link =)

https://www.youtube.com/watch?v=2GfPiUfCGnQ

1017

Creating and running C++ file

Hello this is a video for 01 which I already did, but a video always explains it better.

https://www.youtube.com/watch?v=Quf9Cmk9HgI

01 1017

C++ coding conventions

This conventions, they all come from a set of rules or guidelines called The Zen of Python, written by Tim Peters, these were originally made for Python, but since there are a lot of similarities in both languages, they can be used in C++ as well.

These rules mainly talk about order in your code, because somtimes if you are disorganized, it’s very hard to understand someone else’s code.

So that’s why it’s a very good idea to follow the guidelines, because it helps others, and it helps you.

I’m going to leave the link were I learned about these conventions.

https://gcc.gnu.org/wiki/CppConventions

1017 08

Creation and use of strings in C++

Hello here’s another video, now it’s about strings, I hope you like it people.

https://www.youtube.com/watch?v=QEeUBHWmkTM

25 1017

Creation and use of arrays in C++

Hey here’s my 24 on arrays, I hope you like it.

https://www.youtube.com/watch?v=jLOylYuWtgA

1017

Final #PROJECT Finished

So our final project is done, we had some trouble with it, as I explained on previous posts, the board printing was quite tricky, but with Ken’s help we were able to make it correctly.

After that, the checkQuadrant function was our next challenge we had to make a few changes on the code because it just wasn’t working, but after a few arrangements the function worked correctly.

Later we just put in some conditionals so that the user could only pick numbers in between the boardsize, that didn’t took us that much time

At the end everything worked as expected.

It was a good learning experience, to be honest, it was far much harder than I expected, without my teamate’s help, I wouldn’t have been able finish the job.

Here’s our code, have fun.

https://github.com/kenwbauer/SalvadorAlan/blob/master/sudoku.cpp

1017

Ken’s class video

Hello here’s my video about Ken’s class, I hope you like it =)

https://www.youtube.com/watch?v=JkdduZx4TyM&feature=youtu.be&hd=1

1017

Use of loops with “for”

I’m going to leave a video explaining briefly about the for loop, I hope you like it.

https://www.youtube.com/watch?v=Smo2cj5-b4E&feature=youtu.be&hd=1

1017 20

Sudoku

We are almost done with the final project, but we had a little set back with the board printing, so we talked to Ken today, so that we could get some questions answered on regards to our code. He will check out our code and tell us what we are missing so that we can get a good grade on this .

1017

I’ll include our Github link so that you can check what Alan and I have been doing.

https://github.com/kenwbauer/SalvadorAlan

Use of “switch” as a conditional

This switch thingy is a very useful tool, because instead of nesting many conditionals, you can be very specific, on the response of the program in which case.

As you can see you can add as many cases as you want, but you need to add “break” at the end, if not the default answer will also show up, that why when I typed in 3 goals, it shows the two answers.

If you get the hang of this tool, you will have many posible solutions for coding issues you may find.