Forget c++ and research how to do it in c . . . the compiler should manage to get that working just fine . . . with minimal changes . . .
c++ is like c with a load of extra stuff that allows you to write code in an object orientated manner (a very common way of thinking about software design), Java is another OO (Object Orientated) language for example . . . I guess the vast majority of modern languages are in fact . . .
However . . . for you . . . object orientation, unless specifically part of the assignment, is more or less completely irrelevant . . . as it brings nothing apart from unecessary complexity . . . especially in terms of doing some maths . . . which is all I think you are trying to do . . .
c++ has it's place, personally I like it - it's C (my original language) with bells on to help you (perhaps blow your leg off), some hate it and some would say it's had it's day, regardlessit is a dangerous tool . . . kinda like a fission reactor . . . very useful in the right hands . . . somewhat of a liability in the wrong ones . . .
I've just googled for C code to calculate PI, plenty of exmples out there . . .
As I recall I had a coursework to do this years ago . . . I think just after PI was invented . . . but computers were so slow at the time we probably only got as far as 3.14159 . . .

Go speak to the russian, take him some uranium or some old credit card reciepts and tell him you need some help . . .
Fd