Please can some one tell me how to display the inputted infomation that has been inputted into this vairiable
i use this to input a valu/char to the vaiable
(;'s may bo over top ?? but it's ok im still learning)Code:void books::enter(int i) { cout << "Enter the name of the book "; cin >>(np[i].title); };
and than in my main run some functions in sequence
i have tried this to display the inputted vale but nothing im stuck please help!!!
Code:void books::list(void){ int i; cout << "Listing.." ; for (i=0;i<2;i++) { cout << "\ntitle "; cout << (np[i].title) ; };};



LinkBack URL
About LinkBacks


