You cannot. The GameCube version of Animal Crossing has no code entry system at all.
The long codes people remember belong to the later Nintendo DS and Wii titles, where the game does accept them. On the GameCube, everything is earned in game or received from other towns.