How would you approach a girl you find attractive in college?

I (M18) just started college. I’ve barely talked to anyone so far, but I’m just curious on what the best way to start talking to a girl would be, if I thought she was attractive. Like what would be a good way to start a convo? Ask about a class, if we’re in the same class, or just start by complimenting her or something? In high school, I got rejected/ghosted by every girl I liked so I’m hoping to avoid whatever I did in high school.