how to code a program using c++ so that a customer can rent upto 3 books and how to ban that user if not returned the books.
Please help.

Start here:

#include <iostream>

int main()
{
   // put your code here

}

I got a nice class just for that.
Very easy.

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.