I would like to display strings and few spaces after each string in a menu form
i.e
etc...Code:# 1. First Menu # # 2. Second Menu #
using..
But the spaces after description will vary which will place the last '#' on different position, or badly aligned...Code:int choice =1; string descr = "First Menu"; cout << " \t\t#" << choice << "." << descr << " #\n";
My solution to this is have two strings
How do i join these two in such a way that descr overlaps (occupied the first part of ) whitespace?Code:string descr; string whiteSpace = " ";