Hey guys, I've been following the CS50 lectures online to help teach me C. I'm understanding most of it so far but I'm very stuck on a small part of problem set 1. It involves displaying a variable in the form of currency. I've had a look around via google and have some ideas about what I can do. It's currently a long long variable, and I was thinking of converting it to a string with the format {0;C} but its either not possible or I'm really struggling with the code. Can someone please realign my thinking on the right track? Or any help at all would be great!!!A brief snippet of my code:

Chasca wrote:Hey guys, I've been following the CS50 lectures online to help teach me C. I'm understanding most of it so far but I'm very stuck on a small part of problem set 1. It involves displaying a variable in the form of currency. I've had a look around via google and have some ideas about what I can do. It's currently a long long variable, and I was thinking of converting it to a string with the format {0;C} but its either not possible or I'm really struggling with the code. Can someone please realign my thinking on the right track? Or any help at all would be great!!!A brief snippet of my code:

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -Rick Cook