Splitting a string is really difficult in C ++. For example, we can use string.split (“ ”) funciton in C #. This function can also split the string using multiple separator characters. Unfortunately, C ++ doesn’t have any function to split the string. So, we have to write split function. In this post I’m going to explain how to split the string using multiple separator characters.
First I create a class for split operations. This is my header file.
I created a string variable named delims as the class attribute. It is constant and private because we shouldn’t access…
There was a problem I was having a hard time with it. I want to share the solution to this problem with you.
I want to divide two numbers but unfortunately PIC16F877A does not have division and multiplication instructions.
Let’s consider it as decimal first. We want to calculate 37/2=18.
37 equals to 00100101. Dividing by two means shifting the digit one unit to the right. Let’s try it. 37/2=18. 18 equals to 00010010.
As you can see in the picture, first step is shift the right. We can use RFF command. RRF, shifts the number in the F register…
ESOGU Computer Engineering #3 — UTCN Computer Science