Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lost pages

Name: Anonymous 2009-03-19 13:00

I'm having a bit of trouble. My professor printed out a page of c++ examples and the main bit of information explaining what it does isn't there.
Can you please help? The only lines I need help with are the ones indicated by a comment.

#include <iostream>

//line below
int stonetolb(int);

int main()
{
    using namespace std;
    int stone;
    cout << "enter the weight in stone: ";
    cin >> stone;
    cin.get();
    //line below
    int pounds = stonetolb(stone);
    cout << stone << " stone = ";
    cout << pounds << " pounds" << endl;
    cin.get();
    return 0;
}

//this block
int stonetolb(int sts)
{
    return 14 * sts;
}


Thanks in advance.

Name: Anonymous 2009-03-19 20:02

>>1-3
Jesus F. Christ, I don't know whats worse: the fact that /prog/ is HELPING PEOPLE! now or the fact that IHBT by /prog/ HELPING PEOPLE!

I honestly hope this shit stops.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List