Ajuda Loop Reverso C++
int Offset_Total[] = {4,52,100,148,196,244,292,340,388,436,484,532,580,628,676,724,772,820,868,916,964,1012};
path = Edit1->Text + "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\DpFileList.bin";
if((arq = fopen(path.c_str(), "w+b")) == 0){
ShowMessage("Erro ao acessar o arquivo");
}
for (int i = 0; i < ListBox1->Items->Count; i++) {
if(fseek(arq, Offset_Total[i], SEEK_SET)!=1){
if(fwrite(&loopRevese, 1, 1, arq)==1){
ShowMessage("Dados gravados com sucesso!");
}
}
}
Com gravar nos Offsets ''''''''Offset_Total[]'''''''' a quantidade de item no listbox1 reverso tipo: 9,8,7,6,5,4,3,2,1
path = Edit1->Text + "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\DpFileList.bin";
if((arq = fopen(path.c_str(), "w+b")) == 0){
ShowMessage("Erro ao acessar o arquivo");
}
for (int i = 0; i < ListBox1->Items->Count; i++) {
if(fseek(arq, Offset_Total[i], SEEK_SET)!=1){
if(fwrite(&loopRevese, 1, 1, arq)==1){
ShowMessage("Dados gravados com sucesso!");
}
}
}
Com gravar nos Offsets ''''''''Offset_Total[]'''''''' a quantidade de item no listbox1 reverso tipo: 9,8,7,6,5,4,3,2,1
Cgm2k7 2013
Curtidas 0