I am aware of C++ programming but not C but i guess they are similar
its C only ,c++ is actually known as C with 'Classes' actually named as this way by Bjarne Stroutstrup who worked on c to extend it to classes plus all this, C++ is a object oriented language that means that one programmer works on it by making and working on instances of objects with implication of concepts like Encapsulation, Inheritence(one more is there just not on my mind) etc..
that i want to write a simple blink program to a atmega 8.
Just write the code for blinking for any of ATmega168 and ATmega328 and you can after compiling the sketch load the Binary out of it to the ATmega8 by using a traditional programmer like MKII/AVR isp programmer you can get this in south India for about 500 to 1000 bucks its pretty much useful and will work because internal architecture of all these chips is same they only differ in the fact of flash memory, EEPROM ,pinout is same.
If you want to load this ATmega8 with bootloader then you can load it by using the Arduino as a ISP programmer, more on that you can learn on the site examples/playground.