I'm working on a program for fun but I can't figure out my first problem, also I'm aware the program doesn't end.
#include <iostream>
#include <conio.h>
#include <string>
using namespace std;
//all prototypes
void studentName(string&);
//all global variables
//main
void main()
{
do{
string Name;
studentName(Name);
cout << "\nStudent Name: " << Name << endl;
}while(true);
getch();
}
//all functions
void studentName(string &studName)
{
string Name;
cout <<"Enter student's name: ";
cin.ignore();
getline(cin, Name);
}