How do i delete this thread?

What is the error?

Is there some reason why you have two main()s? That doesn't make any sense. What does the beginning part have anything to do with the problem?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.