Just go to class and sit next to that cute girl you like. (Lets assume this is in the middle of the semester). Then kind of just look in her direction and say, oh...so thats what our professor looks like? If she has a sense of humor, she will prolly laugh, and maybe you can start up a good conversation.