quitZAUMMM 18 Denunciar post Postado Março 28, 2009 tranquilo Compartilhar este post Link para o post Compartilhar em outros sites
_Isis_ 202 Denunciar post Postado Março 28, 2009 #include <iostream> using namespace std; struct cliente { int numCliente; float saldo; }; #define MAX 10 int main() { struct cliente * arrPontDouble[MAX]; for(int i = 0; i < MAX; i++) { arrPontDouble[i] = new struct cliente; if(arrPontDouble[i]) { arrPontDouble[i]->numCliente = i; arrPontDouble[i]->saldo = i*2.0; } } for(int i = 0; i < MAX; i++) { cout << "\narrPontDouble["<< i<< "].numCliente = "<< arrPontDouble[i]->numCliente << endl; cout << "\narrPontDouble["<< i<< "].saldo = "<< arrPontDouble[i]->saldo << endl; } cout << "\nDeletando array..."; for(int i = 0; i < MAX; i++) { delete arrPontDouble[i]; arrPontDouble[i] = NULL; } return 0; } Conselho: esqueça tutorial. Pegue um livro. Compartilhar este post Link para o post Compartilhar em outros sites
juniorc 0 Denunciar post Postado Março 28, 2009 vlw ai , vlw pela dica , mais irei continuar com o tutorial . Compartilhar este post Link para o post Compartilhar em outros sites