Hello everyone
Am actually a newbie and learning C++ on my own. Have been trying to generate a code that prompts a student to enter his/details and after finishing. it couts his/her information. And prompts another student data to be entered. i have already some simple code here but it’s not giving my expectations.. Please help me on how to do it. +254718056203 is my contact add me in watsapp en help me. Hope am not a bother. Thanks
#include <iostream>
#include <string>
using namespace std;
int main()
{
int admno;
string studentname;
string Addresscode;
string telephonenumber;
cout<<"please Enter admission number:\n";
cin>>admno;
cout<<"Please Enter student name:\n";
getline(cin,studentname);
cout<<"please Enter student telephone number:\n";
getline(cin,telephonenumber);
do {cout<<"admission Number: "<<admno<<"Address code: "<<Addresscode<<"Telephone number: "<<telephonenumber;}
while (admno!=35);
cin.get();
}