Tissues

Just another EPIC Binusian EPIC blog EPIC site

Algorithm is very, veRY, vERY, VERY Important!

October29

Hello everyone!!!!!!!!!!!!!!! < dat sign dou LOL

Angelica here and I’m here to talk to you viewers about my lesson that I learned today, but there is a question…

“Angelica, this is very rare of you doing the blog today. You just learned the course this morning to evening, but why doing the blog today?”

Well my dear good “friend”, thank you for the question! I do feel like I wanna type something so. . .

I love typing, it’s just a hobby of mine and I quite enjoying typing, though coding isn’t really my thing, but hey, typing is useful when you wanna write something right? Oh wait, I didn’t mean writing, I mean typing LOL.

Anyway, I went too far off from the topic of my conversation, so . . .

Today’s topic that I’m learning this morning, is Pointers and Arrays. This course teaches us to about the commands that we normally uses on the scanf command. There are addresses that normally used when it comes to writing the right command. The first one is (*) and, then the second one is (&) < pointers and some new commands on this sub-topic that is :

  • *ptr_ptr
  • *ptr
  • *x

And in the project, this is how you write them:

*ptr_ptr = &ptr;
ptr = &x;
x = 10;

If you add the #include thing with getchar and return, the output should show 10. By the way, I just learned that fflush works to clean or erase buffer LOL in C++ language.

Then there’s Array. By the way, little sad thing about Pointers command is they’re barely used in the practicum test later on, so we’ll be using Arrays more often (Though I’m sad because I understand the pointer little better than the Arrays ==”).

Anyway, the command on how to write them down is like this:

Int[x]; or arr [a] [b] = . . .

The (x) stands for the variable that we’re gonna have the computer says. Basically we had to put 2. I have a practicum on how these things works. If you wanna make . . . a game like tic TAC toe. I’ve seen one that my college teacher shows in front of the students. That one needs 3 variables, so [x],[y],[z].

And I think that’s what I understands so far. I basically do know this one lesson rather a little well, considering that we done our homework and we been taught by practicum, I actually didn’t know well if the practicum didn’t happen. I think I’ll be glad that my homeroom college teacher that teaches us Algorithm and Programming teaches us, otherwise we’re doomed (*sad face* #fail).

 

I’ll think I’ll wrap this up for this blog here with pizza box. I mean pizzas are delicious and I won’t mind having another . . .(getting hungry, since I’m writing this blog empty-stomach LOL). Anyway, thank you for reading I hope the little entertainment (that I did earlier and more, and more, and more… < there will be no end. . .) and I’ll see you on the next blog! (By the way, I still love to type, and if you guys pay attention, the word count for this one is about 500…LOL)

 

posted under Uncategorized

Email will not be published

Website example

Your Comment: