ok stoped for 2 years decided to get back into it im makeing a program so that when you hit 1 it asks you something but when you hit 1 nothing happens but if you hit it twice then it works any one know whats wrong heres my code.
remember the code tags atleastCode:#include <iostream.h> #include <conio.h> #include "leadheader.h" int main() { char input; item a("Bob", 1, 10, 9, 3); a.Change_Price(25); a.Display(); input = getch(); switch(input) { case '1': clrscr(); char tname[25]; cout<<"Enter Name: "; cin.getline(tname, 25, '\n'); a.Change_Name(tname); clrscr(); a.Display(); break; } return 0; }