Haiku Scholarship
#1
I seek scholarships
some interesting, some lame
this one caught my eye

http://www.directtextbook.com/haiku/22376

vote for me please?
? is worth one syllable
so it all works out
Thanks given by:
#2
Reminds me of a C++ program I wrote.
I made all of its comments haiku for some reason.
#include <iostream>
#include <fstream>
#include <vector>
#include "..\Combinator\convtime.h"
#define BRATE 616628

using namespace std;

int main(int argc, char* argv[])
{
    cout<<"Text file splitter v. 0.92, 2-26-2012" <<endl;
    if (argc < 2)                                            // Function takes 2 args
    {
        cout<<"Usage:" <<endl;                                // Otherwise, explains itself
        cout<<"txtsplit [File Name] [# Strings Per File]" <<endl;
        cout<<"txtsplit EXAMPLE.TXT 1000000" <<endl;
        cout<<"Splits EXAMPLE.TXT into files containing up to 1000000 strings each" <<endl;
        return 0;                                            // Please come back later
    }
    ifstream file (argv[1], ios::ate);                        // Open the target
    if (!file.is_open()) {                                    // Make sure it really exists
        cout<<"File not found: " <<argv[1] <<endl;            // Elusive, like wind
        return 1;
    }
    cout<<"File " <<argv[1] <<" opened" <<endl;
    cout<<file.tellg() <<" bytes" <<endl;
    cout<<"This will take about " <<convtime((file.tellg()) / BRATE) <<endl;
    file.seekg(0, ios::beg);
    cout<<"Press Enter when ready" <<endl;                    // This tells the user
    cin.get();                                                // Proceed now, or chicken out?
    vector<string> readfile;                                // This vector will read
    cout<<"Splitting..." <<endl;
    char ebuf[8];
    string str, buffer, ofile, ifile = (argv[1]);            // 4 strings: all just names
    unsigned int i = 0;                                        // Introduce the file counter
    while (file.good())                                        // Check for end of file
    {
        while (
            ((readfile.size()) < (atoi(argv[2])))            // Vector is not full,
            && (file.good())) {                                // And the file has not ended,
            file>>str;                                        // Take a string from it

            readfile.push_back(str);}                        // Insert in vector
        ofile = (_itoa (i,ebuf,10));                        // Change the string to a number
        ofile += "_" + ifile;                                // Append the filename

        ofstream outputfile (ofile, ios::trunc);            // Create this new file
        for (unsigned j=0; j < readfile.size(); j++) {        // For each string in the vector,
            outputfile<<(readfile.at(j)) + "\n";            // Write to the output
        }
        outputfile.close();                                    // Close the outputfile
        readfile.clear();                                    // Now empty the read buffer
        i++;                                                // Increment the count

    }                                                        // This loop has ended
    file.close();                                            // It is time to stop reading
    return 0;                                                // The split is complete
}
Thanks given by:
#3
You are wonderful.
Despite my praises
I must reassure you that
There was no homo
Thanks given by:
#4
i have NO IDEA how Haikus work...
Thanks given by:
#5
5
7
5
Thanks given by:
#6
If you want money
Better to sell your body
lest you dissapoint
Thanks given by:
#7
Seems Lantry's got some competition.
Thanks given by:
#8
(16 Sep 12, 10:49PM)ShadowFlameZ Wrote: 5
7
5
aaahhhh. right, i get it...

sorry to ask you
It was never taught to me
in school or at home

BOOM!!!
Thanks given by:
#9
We had this in class
I took it and ran with it
like so many knives
Thanks given by:
#10
Haikus are random
Mine are even more random
I do not even
Thanks given by:
#11
Every time you say,
"What is this I don't even,"
We all groan in pain.
Thanks given by:
#12
Sadly you are wrong
He didn't say the first part
"What is this," did he?
Thanks given by:
#13
The statement still stands.
I did not say that we groaned,
only when we do.
Thanks given by:
#14
Kudos to you sir
You've truly outwitted me
Thus I'm defeated
Thanks given by:
#15
[cubescript]
add2bind MOUSE1 [
allowblinkingtext 1 //True!
echo \fbMy Eyes Hurt
]
[/cubescript]
Thanks given by:
#16
[Image: clap.gif&size=400x1000]
Thanks given by:
#17
V-man, the enigma;
LOLOLOLOLOLOLOL
Thanks given by:
#18
Hm, that seems to be the most intelligent insult you've ever attempted. GG Also GTFO.
Thanks given by: