Estoy haciendo un programa en C++ de registro de pacientes con Hilos y con formularios, pero como puedo insertar de un Text Box a un char? También tengo el siguiente error:
E0020 el identificador "NodoMedico" no está definido
E0137 la expresión debe ser un valor L modificable
struct datosPaciente {
char enfermedadP[20];
char sintomas[200];
char paciente[200];
int dia, mes, año;
};
struct datosMedico {
char medico[200];
double sueldo;
};
struct NodoPaciente
{
datosPaciente paciente;
NodoPaciente *puntero;
};
NodoPaciente *iniP, * finP;
void insertarNodoPaciente(char enfermedad[20]) {
NodoPaciente *aux = new NodoPaciente;
aux->paciente.enfermedadP=enfermedad;
aux->puntero = NULL;
if (iniP == NULL) {
iniP = finP = aux;
}
else {
finP->puntero = aux;
finP = aux;
}finP->puntero = NULL;
}
Por favor, cualquier ayuda en bienvenida