Hi and congratulations!! :)
I had exactly the same problem, our little girl was born on 22nd by emergency section but we managed to breastfeed straight away then it all went wrong! I was in hosp 5 days and the staff said they have never seen a little one get in such a flap when trying to feed 
She would only feed lying down which everyone had to help with as I couldnt move and then when she had finished she would wail if I put her down :(
We were doing ok in hindsight at the hospital, but when we got home we had one good day and then she spent the entire night screaming until she was purple and nothing we could do would help, she wouldnt latch on, wouldnt even stay still enough to try which was really distressing for all of us, just screamed for 8 hours :(
We ended up giving her some formula, which I really wasnt keen on but she hadnt had anything for too long and then I started to express, which worked fine when the midwife was here but then nothing!
Little Cherry is 11 days old now and I have continued to try and breastfeed, which we now do but she still wants more afterwards so now we are all a lot calmer (I was soooooo stressed) I can express lots after she has fed and then give her that by bottle.
She is having formula at night sometimes depending on how it goes at the time.
Everyone was telling me to calm down as being tense doesnt help when feeding and I thought I would punch the next person that told me this as its so much harder than it sounds but it really does work, if you have to give your little one some formula then at least you DC isnt hungry, Im so glad DD is settled and happy and its made the rest of it much easier and had meant that I can continue to give her breast milk.
KEEP TRYING!! I was literally tearing my hair out in tears but its all come good in the end (fingers crossed) so dont give up :)
Its all new to both of you after all.
My health visitor out me in touch with a local lady for BF support, it made me feel much better just telling someone who knew what was on about so make sure you speak to people about it too.
Sorry for such a long post - good luck and best wishes x x