Bonjour à tous, je suis pas passionné par la programmation, mais j'ai un truc à faire, je suis donc passé vous voir, sinon mission impossible, j'y arriverais pas.
Voilà l'histoire:
j'ai un fichier binaire: glace.dis
j'ai besoin de le lire, je sais :
-qu'une ligne = 28 bytes
-que la valeur:28*1+24=numf (codé sur 4 bit)
28*3+16=ymin (codé sur 4 bit)
28*3+20=ymax (codé sur 4 bit)
28*3+24=numy (codé sur 4 bit)
28*4+16=xmin (codé sur 4 bit)
28*4+20=xmax (codé sur 4 bit)
28*4+24=numx (codé sur 4 bit)
-et qu'en suit j'ai numy fois la séquence Xi Yi Zi Ai Bi Ci Fi (chacun occupant 4bits)
je voudrais faire 1 tableau de numy lignes et 7 colonnes comprenant Xi Yi Zi Ai Bi Ci fi.
ensuite construire un second tableau temporaire, dans lequel indiquer les lignes du premiers remplissant une condition évolutive.
on dira que Xmin,Ymin et Xmax,Ymax constituent une grille.
on subidivise cette grille par pas de 1, donc condition:
cond1:Xi,Yi est dans Xmin,Ymin
cond2:Xi,Yi est dans Xmin+1,Ymin
...
cond:Xi,Yi est dans Xmax,Ymin
cond:Xi,Yi est dans Xmin,Ymin+1
jusqu'à
cond:Xi,Yi est dans Xmax,Ymax
à cahque condition on vérifie tout le tableau1, et on recopie les éléments respectant la condition dans le tableau 2(temporaire), ensuite on construit un 3ème tableau qui calcule la moyenne sur Xj/n Yj/n Zj/n du tableau 2,et somme les Aj Bj Cj Fj.
Ensuite on efface le tableau 2, et on passe à la cond2, puis cond3....
A la fin, on sort un fichier txt (ascii)
avec X Y Z A B C F chaque ligne étant un élément du tableau 3.
Aucun dit : 'VC5.exe' : Chargé 'E:VC5VC5releaseVC5.exe', Les symboles ont été chargés.
'VC5.exe' : Chargé 'C:WINDOWSsystem32ntdll.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32mscoree.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32kernel32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32advapi32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32rpcrt4.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32secur32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSWinSxSx86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700msvcr80.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32msvcrt.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSWinSxSx86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700msvcm80.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32ole32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32gdi32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32user32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32imm32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32shlwapi.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727mscorwks.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32shell32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSWinSxSx86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83comctl32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32comctl32.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Culture.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Déchargé 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Culture.dll'
'VC5.exe' : Chargé 'C:WINDOWSassemblyNativeImages_v2.0.50727_32mscorlib375fa631acd981130da1efc6b3b5baffmscorlib.ni.dll', Aucun symbole n'a été chargé.
'VC5.exe' (Managé) : 'C:WINDOWSassemblyGAC_32mscorlib2.0.0.0__b77a5c561934e089mscorlib.dll' chargé, aucun symbole chargé.
'VC5.exe' (Managé) : 'e:VC5VC5releaseVC5.exe' chargé, symboles chargés.
'VC5.exe' : Chargé 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727mscorjit.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSMicrosoft.NETFrameworkv2.0.50727diasymreader.dll', Aucun symbole n'a été chargé.
'VC5.exe' : Chargé 'C:WINDOWSsystem32rsaenh.dll', Aucun symbole n'a été chargé.
'VC5.exe' (Managé) : 'C:WINDOWSWinSxSx86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700msvcm80.dll' chargé, aucun symbole chargé.
Le thread 'Thread Win32' (0x1134) s'est arrêté avec le code 0 (0x0).
Le thread 'Thread Win32' (0x17d0) s'est arrêté avec le code 0 (0x0).
Le programme '[3152] VC5.exe: Managé' s'est arrêté avec le code 0 (0x0).
Le programme '[3152] VC5.exe: Natif' s'est arrêté avec le code 0 (0x0).