arreglo de struct

Upload: roberto-vega

Post on 05-Jul-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/16/2019 Arreglo de Struct

    1/4

    #include #include using namespace std;

    struct data {char color[25];char modelo[40];char tipo[25];int placa;int precio;}F[20],T[20],C[20];

    int contf=0, contt=0, contc=0;

    int main(){int i, opc;

    cout

  • 8/16/2019 Arreglo de Struct

    2/4

  • 8/16/2019 Arreglo de Struct

    3/4

    ////////////////////////////////////VALIDA CEDULA///////////////////////////////////////Lo pones como un número entero y haces un if que indique que el número tiene que ser mayor a 99999 y menor a 9999999999.

    import java.util.Scanner; // Importa Scanner para toma de datos

    int Cedula; // Inicializa

    Scanner tomardato = new Scanner(System.in);

    System.out.printl("Digite su número de Cédula");Cedula = tomardato.nextInt; // Guarda el dato escrito

    If(Cedula > 99999 && Cedula < 9999999999){ // Valida  System.out.printl("Cédula valida");}else{  System.out.printl("Cédula no valida");}

    create temporary tablespace temp_demotempfile 'temp01.dbf' size 5m autoextend on;

    create tablespacedatafile 'tbs_f2.dat' size 5monline;

    alter tablespace asdoffline;

    drop asd;

    create tablespace exampledatafile 'datos1.dat' size 5monline;

    Create user DATAidentified externallydefault tablespace examplequota 5m on example//profile app_user;-->solo linux

    grant connect, resource to DATA;

    create table subjects(subject_id number not null,subject_name varchar2(30) not null,description varchar2(4000)

    )tablespace example;

    desc subjects

    alter table subjectsadd periodo number not null;

    wwe wii https://www.youtube.com/watch?v=ISP-ZovEFww

  • 8/16/2019 Arreglo de Struct

    4/4

    https://www.youtube.com/watch?v=XuvCduXniA4--->How to speed up dolphin emulator1000% for any Computer