All pastes #235441 Raw Edit

Someone

public text v1 · immutable
·published 2006-11-03 06:38 UTC
rendered paste body
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

void version(int a)
{
int ver=a;
cout << "weight version: " << ver <<endl;
};

void filewritez(char a)
{
     string file1;
     file1 = a;
//     float file2 = b;
     ofstream filez ( "file1" );
     filez << "you weigh " << sizez << "lbs fatty." << endl;
     filez.close();
};

int main()
{
    version(4);
    int sizez; //k i need this in filewritez()
    cout << "how much do you weigh? (lbs)" <<endl;
    cin >> sizez;
    cout << sizez << "LBS! WOW!" << endl;    
    filewritez();
    system("PAUSE");
    return EXIT_SUCCESS;
}