If you are a noob to programming (C++ or otherwise) I would suggest you learn more about programming in the language first. Other than that, I am sure that you could a packet to echo and return to a non-existent IP so many times the system fails (the basis of DOS (Denial Of Service) attacks). Also, I am not sure if you could run the attack against your own computer (a different computer you own is possible), but why the hell would you want to crash the computer you are running on? That would make things very hard to evaluate after you finished your attack.. And finally, there probably are many hundreds of tutorials on "packet programming" (is that even a correct term?). Just remember, Google is your friend.