There are two ways to get the operating cash flows. The first one is the indirect method and the other one is the direct method. The direct method is a bit more complicated and it’s not used as often as the indirect method.
For the indirect method, see this question :
http://financialmemos.com/questions/how-to-do-indirect-cash-flow-statement/