all
a
/
b
/
c
/
f
/
h
/
j
/
jp
/
l
/
o
/
q
/
s
/
sw
/
lounge
cgi
up
wiki
Heyuri!
Bulletin Boards
2D Cute
2D Ero
2D Lolikon
3D Girls
Anime/Manga
Flash
Girl Talk
日本語/Japan
Lounge
Oekaki
Off-Topic
Site Discussion
Strange World
Overboard
Heyuri★CGI
Heyuri★CGI
@PartyII
Battle Royale R
Chat
Chinsouki★
Dating
DevChat
Drama Club
Hakoniwa Islands PvE
Hakoniwa Islands PvP
Polls
Slime Breeder
Web Banana
Web Shiritori
Yumemiru Gambler
Kakiko Checker
Other
Anime Nominations
Banners
Cytube
Heyuri Calendar
Heyuri Wiki
MAL Club
Museum
Steam Group
Uploader
[
Settings
]
[
Home
] [
Contact
] [
Catalog
] [
Search
] [
Thread list
] [
Stats
] [
Reports
] [
Watcher
] [
PMs
] [
Banners
] [
Admin
]
Main
Up to Heyuri.net
Hide nav
Toggle board directories
Bulletin boards
/c/ -
2D Cute
/h/ -
2D Ero
/l/ -
2D Lolikon
/s/ -
3D Girls
/a/ -
Anime/Manga
/lounge/ -
Lounge
/f/ -
Flash
/j/ -
Girl Talk
/jp/ -
日本語/Japan
/o/ -
Oekaki
/b/ -
Off-Topic
/q/ -
Site Discussion
/sw/ -
Strange World
/all/ -
Overboard
Misc.
Anime Nominations
Banners
Museum
Uploader
Jukebox
Sumika Controller
Heyuri★CGI
Heyuri★CGI
@PartyII
Battle Royale R
Chat
Chinsouki★
Dating
DevChat
Drama Club
Hakoniwa Islands PvE
Hakoniwa Islands PvP
Polls
Slime Breeder
Web Banana
Web Shiritori
Yumemiru Gambler
Kakiko Checker
External
Cytube
Townhall
MAL Club
Steam Group
#heyuri@Rizon
Style:
Random
Sakomoto
Heyuri Classic
Futaba
Burichan
Fuuka
Gurochan
Photon
Tomorrow
Ayashii
Mercury
Import custom
Submit board banners here.
Off-Topic@Heyuri
it's the place to be!
[
Return
]
Report a post
Preview
Anonymous
2025/04/25(Fri)02:08:25
No.
140715
+
[
Edit
] [
Report
]
▶
>>140701
I am not sure what you mean by "classic", but every data structure has it's own benefits and drawbacks.
Associative array, AKA map, AKA dictionary, AKA hash table, is useful when you can't use simple number IDs. For example when you request a page from >>>/jp/ the server doesn't know if "jp" is the name of the first or second or third board in it's board list. It could do a loop and check every board's name, which works if there aren't many boards, but if there's 5000 boards then it would be better to use a hash table so you can just use the word "jp" as the key.
If you already know exactly what you need, then it would be better to use enums as the keys to a normal array. It's a more useful way to do
>>140656
and looks like this:
#include <stdio.h>
enum {
A,
B,
HEYURI,
};
char * grades [] = {
[A] = "Excellent",
= "Boo...",
[HEYURI] = "The place to be!",
};
void main () {
printf(grades[HEYURI]); // Will print "The place to be!"
}[/a][/heyuri][/heyuri][a][heyuri][heyuri][/heyuri][/heyuri][/a]
Post number
No.
140715
Board
Off-Topic@Heyuri
Reason
Optional. Describe what's wrong with it.
Style: