For the reference Book You can use bjarne stroustrup.As it consist basics in such detail that u can move to advance programming without much effort.