Skip to main content
se eliminaron 377 caracteres en el cuerpo
Origen Enlace
PaperBirdMaster
  • 48.1k
  • 6
  • 45
  • 86
    #define Nal 41
#define maxcar 61
#define opmax 51

typedef char nombre[maxcar];
typedef char sistema_operativo[opmax];


typedef struct
{
    nombre usuario;
    sistema_operativo opera;
    float memoria;
    bool usara_app;


}TFG;

typedef TFG FP[Nal];


 void introducir_inform(TFG FP, float &memoria, int &numuser)
    {
        numuser=0;
        char respapp, resp;
        cout<<"Desea introducir algun usuario s/n: ";
        cin >> resp;
    
        while(resp=='s' && numuser<Nal)
        {
    
            cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
            cin >> FP[numuser].usuario;
            cout<<"Introduzca sistema operativo sin espacios blancos: ";
            cin >> FP.opera;
            cout<<"Introduzca memoria disponible: ";
            cin >> FP.memoria;
            cout<<"Esta dispuesto a usar la app S/N ";
            cin >> respapp;
    
            switch(respapp)
            {
            case 'S':
                FP.usara_app=true;
                break;
    
            case 'N':
                FP.usara_app=false;
                break;
            }
            numuser++;
        }
    }

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    #define Nal 41
#define maxcar 61
#define opmax 51

typedef char nombre[maxcar];
typedef char sistema_operativo[opmax];


typedef struct
{
    nombre usuario;
    sistema_operativo opera;
    float memoria;
    bool usara_app;


}TFG;

typedef TFG FP[Nal];


 void introducir_inform(TFG FP, float &memoria, int &numuser)
    {
        numuser=0;
        char respapp, resp;
        cout<<"Desea introducir algun usuario s/n: ";
        cin >> resp;
    
        while(resp=='s' && numuser<Nal)
        {
    
            cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
            cin >> FP[numuser].usuario;
            cout<<"Introduzca sistema operativo sin espacios blancos: ";
            cin >> FP.opera;
            cout<<"Introduzca memoria disponible: ";
            cin >> FP.memoria;
            cout<<"Esta dispuesto a usar la app S/N ";
            cin >> respapp;
    
            switch(respapp)
            {
            case 'S':
                FP.usara_app=true;
                break;
    
            case 'N':
                FP.usara_app=false;
                break;
            }
            numuser++;
        }
    }

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#define Nal 41
#define maxcar 61
#define opmax 51

typedef char nombre[maxcar];
typedef char sistema_operativo[opmax];


typedef struct
{
    nombre usuario;
    sistema_operativo opera;
    float memoria;
    bool usara_app;


}TFG;

typedef TFG FP[Nal];


 void introducir_inform(TFG FP, float &memoria, int &numuser)
    {
        numuser=0;
        char respapp, resp;
        cout<<"Desea introducir algun usuario s/n: ";
        cin >> resp;
    
        while(resp=='s' && numuser<Nal)
        {
    
            cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
            cin >> FP[numuser].usuario;
            cout<<"Introduzca sistema operativo sin espacios blancos: ";
            cin >> FP.opera;
            cout<<"Introduzca memoria disponible: ";
            cin >> FP.memoria;
            cout<<"Esta dispuesto a usar la app S/N ";
            cin >> respapp;
    
            switch(respapp)
            {
            case 'S':
                FP.usara_app=true;
                break;
    
            case 'N':
                FP.usara_app=false;
                break;
            }
            numuser++;
        }
    }

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'
se añadieron 853 caracteres en el cuerpo
Origen Enlace
    #define Nal 41
#define maxcar 61
#define opmax 51

typedef char nombre[maxcar];
typedef char sistema_operativo[opmax];


typedef struct
{
    nombre usuario;
    sistema_operativo opera;
    float memoria;
    bool usara_app;


}TFG;

typedef TFG FP[Nal];


 void introducir_inform(TFG FP, float &memoria, int &numuser)
    {
        numuser=0;
        char respapp, resp;
        cout<<"Desea introducir algun usuario s/n: ";
        cin >> resp;
    
        while(resp=='s' && numuser<Nal)
        {
    
            cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
            cin >> FP[numuser].usuario;
            cout<<"Introduzca sistema operativo sin espacios blancos: ";
            cin >> FP.opera;
            cout<<"Introduzca memoria disponible: ";
            cin >> FP.memoria;
            cout<<"Esta dispuesto a usar la app S/N ";
            cin >> respapp;
    
            switch(respapp)
            {
            case 'S':
                FP.usara_app=true;
                break;
    
            case 'N':
                FP.usara_app=false;
                break;
            }
            numuser++;
        }
    }

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

void introducir_inform(TFG FP, float &memoria, int &numuser)
{
    numuser=0;
    char respapp, resp;
    cout<<"Desea introducir algun usuario s/n: ";
    cin >> resp;

    while(resp=='s' && numuser<Nal)
    {

        cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
        cin >> FP[numuser].usuario;
        cout<<"Introduzca sistema operativo sin espacios blancos: ";
        cin >> FP.opera;
        cout<<"Introduzca memoria disponible: ";
        cin >> FP.memoria;
        cout<<"Esta dispuesto a usar la app S/N ";
        cin >> respapp;

        switch(respapp)
        {
        case 'S':
            FP.usara_app=true;
            break;

        case 'N':
            FP.usara_app=false;
            break;
        }
        numuser++;
    }
}

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'
    #define Nal 41
#define maxcar 61
#define opmax 51

typedef char nombre[maxcar];
typedef char sistema_operativo[opmax];


typedef struct
{
    nombre usuario;
    sistema_operativo opera;
    float memoria;
    bool usara_app;


}TFG;

typedef TFG FP[Nal];


 void introducir_inform(TFG FP, float &memoria, int &numuser)
    {
        numuser=0;
        char respapp, resp;
        cout<<"Desea introducir algun usuario s/n: ";
        cin >> resp;
    
        while(resp=='s' && numuser<Nal)
        {
    
            cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
            cin >> FP[numuser].usuario;
            cout<<"Introduzca sistema operativo sin espacios blancos: ";
            cin >> FP.opera;
            cout<<"Introduzca memoria disponible: ";
            cin >> FP.memoria;
            cout<<"Esta dispuesto a usar la app S/N ";
            cin >> respapp;
    
            switch(respapp)
            {
            case 'S':
                FP.usara_app=true;
                break;
    
            case 'N':
                FP.usara_app=false;
                break;
            }
            numuser++;
        }
    }

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

se eliminaron 368 caracteres en el cuerpo
Origen Enlace
PaperBirdMaster
  • 48.1k
  • 6
  • 45
  • 86

AYUDA urgente Error no se que se pasa con mi []match for 'operator[]'

    void introducir_inform(TFG FP, float &memoria, int &numuser)
{
    numuser=0;
    char respapp, resp;
    cout<<"Desea introducir algun usuario s/n: ";
    cin >> resp;

    while(resp=='s' && numuser<Nal)
    {

        cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
        cin >> FP[numuser].usuario;
        cout<<"Introduzca sistema operativo sin espacios blancos: ";
        cin >> FP.opera;
        cout<<"Introduzca memoria disponible: ";
        cin >> FP.memoria;
        cout<<"Esta dispuesto a usar la app S/N ";
        cin >> respapp;

        switch(respapp)
        {
        case 'S':
            FP.usara_app=true;
            break;

        case 'N':
            FP.usara_app=false;
            break;
        }
        numuser++;
    }
}

Porque aparece error: no match for 'operator[]' in 'FP[numuser]' aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

error: no match for 'operator[]' in 'FP[numuser]'

AYUDA urgente no se que se pasa con mi []

    void introducir_inform(TFG FP, float &memoria, int &numuser)
{
    numuser=0;
    char respapp, resp;
    cout<<"Desea introducir algun usuario s/n: ";
    cin >> resp;

    while(resp=='s' && numuser<Nal)
    {

        cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
        cin >> FP[numuser].usuario;
        cout<<"Introduzca sistema operativo sin espacios blancos: ";
        cin >> FP.opera;
        cout<<"Introduzca memoria disponible: ";
        cin >> FP.memoria;
        cout<<"Esta dispuesto a usar la app S/N ";
        cin >> respapp;

        switch(respapp)
        {
        case 'S':
            FP.usara_app=true;
            break;

        case 'N':
            FP.usara_app=false;
            break;
        }
        numuser++;
    }
}

Porque aparece error: no match for 'operator[]' in 'FP[numuser]' aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Error no match for 'operator[]'

void introducir_inform(TFG FP, float &memoria, int &numuser)
{
    numuser=0;
    char respapp, resp;
    cout<<"Desea introducir algun usuario s/n: ";
    cin >> resp;

    while(resp=='s' && numuser<Nal)
    {

        cout<<"Introduzca nombre y apellidos sin espacios blancos: ";
        cin >> FP[numuser].usuario;
        cout<<"Introduzca sistema operativo sin espacios blancos: ";
        cin >> FP.opera;
        cout<<"Introduzca memoria disponible: ";
        cin >> FP.memoria;
        cout<<"Esta dispuesto a usar la app S/N ";
        cin >> respapp;

        switch(respapp)
        {
        case 'S':
            FP.usara_app=true;
            break;

        case 'N':
            FP.usara_app=false;
            break;
        }
        numuser++;
    }
}

Porque aparece:

error: no match for 'operator[]' in 'FP[numuser]'
Origen Enlace
Loading