Bonjour, j'ai ces types de textes :
SoDa_MERRA2_lat8.567_lon16.083_Logone-Occidental_Moun
SoDa_MERRA2_lat8.663_lon16.854_Logone-Oriental_Do
SoDa_MERRA2_lat8.913_lon17.554_Mandoul_Koum
SoDa_MERRA2_lat9.143_lon18.392_Moyen-Chari_Sar
SoDa_MERRA2_lat9.364_lon14.904_Moyo-Kebbi-Ouest_Pal
SoDa_MERRA2_lat9.397_lon16.301_Tandjile_Lai
SoDa_MERRA2_lat10.281_lon15.372_Mayo-Kebbi-Est_Bongo
SoDa_MERRA2_lat11.029_lon20.283_Salamat_Am-Timan
SoDa_MERRA2_lat11.404_lon16.170_Chari-Baguirmi_Massen
SoDa_MERRA2_lat12.107_lon15.044_Ville-de-NDjamena_NDjamena
SoDa_MERRA2_lat12.184_lon18.693_Guera_Mongo
SoDa_MERRA2_lat12.225_lon21.410_Sila_Goz-Beïda
SoDa_MERRA2_lat12.996_lon15.729_Hadjer-Lamis_Massako
SoDa_MERRA2_lat13.215_lon18.335_Batha_Ati
SoDa_MERRA2_lat13.459_lon14.715_Lac_Bol
SoDa_MERRA2_lat13.641_lon16.489_Barh-el-Ghazel_Mousso
SoDa_MERRA2_lat13.829_lon20.832_Ouaddai_Abech
SoDa_MERRA2_lat14.121_lon15.310_Kanem_Mao
SoDa_MERRA2_lat14.528_lon20.927_Wadi-Fira_Biltine
SoDa_MERRA2_lat17.185_lon21.581_Ennedi-Ouest_Fada
SoDa_MERRA2_lat17.750_lon23.167_Ennedi-Est_Am-Djarass
SoDa_MERRA2_lat17.926_lon19.104_Tibesti_Faya
SoDa_MERRA2_lat18.250_lon18.500_Borkou_Bourkou
Comment écrire un programme en C, qui peut me permettre de récupérer les noms des villes, lat et lon dans une matrice comme celle-ci :
Villes |
lat |
lon |
Moun |
8.567 |
16.083 |
Do |
8.663 |
16.854 |
Koum |
8.913 |
17.554 |
Sar |
9.143 |
18.392 |
Pal |
9.364 |
14.904 |
Lai |
9.397 |
16.301 |
Bongo |
10.281 |
15.372 |
Am-Timan |
11.029 |
20.283 |
Massen |
11.404 |
16.170 |
NDjamena |
12.107 |
15.044 |
Mongo |
12.184 |
18.693 |
Goz-Beïda |
12.225 |
21.410 |
Massako. |
12.996 |
15.729 |
Ati |
13.215 |
18.335 |
Bol |
13.459 |
14.715 |
Mousso |
13.641 |
16.489 |
Abech |
13.829 |
20.832 |
Mao |
14.121 |
15.310 |
Biltine |
14.528 |
20.927 |
Fada |
17.185 |
21.581 |
Am-Djarass |
17.750 |
23.167 |
Faya |
17.926 |
19.104 |
Bourkou |
18.250 |
18.500 |
Vos aides et orientations seront les bienvenues merci d'avance.
Partager