and its called with:
computeCalories (argv[1], argv[2])
When you run your program, how are you actually running it?
I think you may need to look at command line arguments a bit more.
just with codeblocks and hit run
I completely agree with iHutch105's last post.
google "command line arguments codeblocks".