Bring a large pan of salted water to the boil.
Cook the spaghetti according to the pack instructions.
Meanwhile, separate the eggs.
Mix the egg yolks with the cream and diced ham. (Use the egg whites in another recipe.)
Drain the spaghetti then return to the pan. Add the egg mixture and stir over a low heat until the mixture begins to thicken. Remove from the heat.
Season the spaghetti with pepper and serve with freshly grated Parmesan.