You need to add database name user name & password details in wp-config.php file.
open wordpress directory and find wp-cofig-sample.php file and rename it to wo-config.php. After renaming open this file & find following line
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'username_here');
/** MySQL database password */
define('DB_PASSWORD', 'password_here');
/** MySQL hostname */
define('DB_HOST', 'localhost');
replace database_name_here with your data base name. for wamp user name is root and password is blank. after adding database name above lines will be like following.
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
now save wp-config.php file and visit localhost/wordpress to complete WordPress installation.
or you can read step by step instruction at https://wordpressinurdu.com/2013/01/how-to-install-wordpress-locally-on-windows-pc-using-wamp-server/