- Aliexpress tapasztalatok
- A Coca-Cola következő nagy újítása az AI
- Vodafone otthoni szolgáltatások (TV, internet, telefon)
- Ubiquiti hálózati eszközök
- Crypto Trade
- A TikTokon marakodik Trump és Biden, betilthatja az USA
- Telekom otthoni szolgáltatások (TV, internet, telefon)
- Musk szerint már jövőre itt vannak a Tesla Optimus humanoid robotok
- Olcsóbb lett a Tesla Full Self-Driving szoftvere
- Mobilinternet
Új hozzászólás Aktív témák
-
artiny
őstag
CSV fájl szétdarabolása strtok () függvény segítségével?
Ilyan adat szerepel a csv fájlban.akcia;action;0;0
autobus;bus;0;0
budova;building;0;0
celkom;quite;0;0
centrum;centre;0;0ezt csv fajlban hogyan kell szetdarabolni?
Beolvasas a csv fájlnak és szetdarabolas majd kiiratas..hogyan kéne?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>int main() {
FILE *doo = fopen("slovnik.csv", "r");
fclose(doo);
return 0;
}Strtok()
Example:
char str[] = "now # is the time for all # good men to come to the # aid of their country";
char delims[] = "#";
char *result = NULL;
result = strtok( str, delims );
while( result != NULL ) {
printf( "result is "%s"\n", result );
result = strtok( NULL, delims );
}OUTPUT:
result is "now "
result is " is the time for all "
result is " good men to come to the "
result is " aid of their country"
Új hozzászólás Aktív témák
● olvasd el a téma összefoglalót!
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Xbox Series X ÚJ 2026.05.12. Microsoft garancia
- Apple Watch 6 44 mm LTE
- Kategória váltás miatt eladó majdnem teljes (pedál nélkül) Fanatec DD szett:
- ProBook 450 G8 15.6" FHD IPS i5-1135G7 Iris Xe G7 16GB 256GB NVMe ujjlolv IR kam gar
- AKCIÓ! Apple MacBook Pro 16 M2 Pro 12/19/32GB/1TB SSD notebook 3 év garanciával szinte új