Skip to main content
 

Input and output in C++

1 min read

Now this video is for 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

 

Creating and running C++ file

1 min read

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

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

 

C++ coding conventions

1 min read

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

 

Creation and use of strings in C++

1 min read

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

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

 
 

Final #PROJECT Finished

1 min read

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

 

Ken's class video

1 min read

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

 

Use of loops with "for"

1 min read

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

 

Sudoku

1 min read

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 .

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

1 min read

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.