The best thing you can do is prepare yourself knowledge wise for anything. Not everyone is helpful while you are in the hospital and sometimes bad advice is given that can hurt your chances of successfully breastfeeding your LO.
Don't feed on anyone's schedule but your baby's. When you see those little fists going to that little mouth and hear sucking, if your LO starts "rooting", searching for a nipple, offer it. Feed completely on one side until your LO loses interest, burp, then offer other side. If he/she doesn't nurse on the 2nd side, offer that side next.
To latch, place your nipple between index and middle finger to flatten and attempt to put as much in that lil mouth as possible. If there is still pain after the initial latch, place your finger inbetween your nipple and baby's mouth to break the seal and try to relatch.
Don't worry about how much he/she is getting, don't worry about how long he/she is feeding or how often, just feed on demand. Watch for dirty diapers. As long as you are changing dirty diapers, you know something is going in. Also, what you get out with a breastpump is no way to measure how much your baby is nursing. Baby will always be able to get more out than a breastpump.
Just remember it's not only you who are learning this breastfeeding thing but that sweet little newborn as well. It's as new to that lil bundle as it is to you and you will have to learn together
I got lucky with my first as he took to the breast naturally and easily. I didn't have any pain at all. My daughter did not though and it took a good 3 weeks before things finally started to click for her (and I could feed her without crossing eyes, curling toes and gasping in pain).
There were times when she would get frustrated, frailing her little arms and screaming at my boob and I would put her on my shoulder to burp her. Sometimes that all she needed, othertimes it served as a breather for both of us to soothe and calm outselves before tackling it again.
The more boob time, the better for milk production. I made sure to take my prenatal vitamins, algae omega 3 pill, drink plenty of water and had a bowl of oats every morning.
The first month is the hardest but it is so worth it! It becomes a lot easier. I had to switch to formula when my son was about 4 months because of returning to work and believe me, I missed being able to just whip a boob out instead of staggering half asleep into the kitchen to prepare a bottle to the tune of a screaming child (formula does NOT mean better sleeping, btw. My daughter started sleeping 5-7hr blocks at 6 weeks. Son?
Not even when he was on formula and starting solids at 5 months ).
Good luck