can we acess the serialports of a computer using a c++ programme?
ifthe answer is yes how? pleasegive me an eg. pgm.

Yes you can, but the answer depends on your operating system and compiler.

This better not be another "OS=XP and Compiler=TurboC" question.

Some background reading when you've told us more about what it is you actually want.
http://www.catb.org/~esr/faqs/smart-questions.html

Be a part of the DaniWeb community

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