You can still make a living as a COBOL programmer even though it has (hopefully!) been a very long time since any new project was started with COBOL. There is enough C++ around that you'll have no trouble finding a job as C++ programmer for next couple of decades at least.