View Poll Results: Vote for Contest #1 Winner

5. You may not vote on this poll
  • Brain

    2 40.00%
  • GoGators

    0 0%
  • Hunter2

    3 60.00%

Thread: Vote Now Please :)

  1. #1
    Join Date
    Jun 2005

    Vote Now Please :)

    This is a vote for the best code for CONTEST #1 found
    on this page, you should vote on the code that
    looks the ebst and follows all the requirements,
    thanks ahead of time for your participation.

    Winner of Contest #2 and #3 and the rule for Contest #1
    can be found here :

    Last edited by ILoveVectors; 07-01-2005 at 07:58 PM.

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Moved to Contest Board

  3. #3
    Join Date
    Mar 2005
    Nice job Hunter2, your code is infact the shortest and it works great. Although as I read in your other post you forgot capitals, but still its a nice implementation I must say.

    Lol saw gators and it had numbers so I was thinking wow not going to vote for him, but then realized it was a different program... But I chose hunter2 because his is the shortest and it accomplishes the task.

    Sorry I think its weird to have people vote on programs that are different in nature, but thats just my opinion.

  4. #4
    Join Date
    Jun 2005
    Ah that was a mistake on my part, i posted the wrong code.
    Gogators is not in the running of this competition.

    Sorry about that.
    Last edited by ILoveVectors; 07-01-2005 at 08:00 PM.

  5. #5
    Registered User major_small's Avatar
    Join Date
    May 2003
    while brain's handles errors and such more elegantly, I must say that Hunter2's code is much more straightforward and to the point...

    and on the topic of gogator's code, what about this:
    #include <vector>
    #include <iostream>
    #include <string>
    #include <fstream>
    using namespace std;
    void makeVector(string line, vector <string> &Adjust); 
    int main(void){
        vector <string> Storage; 
        string infileName,outfileName, fileLine;
        fstream input_file, output_file; 
        cout << "Enter the filename to read in: ";
        cin >> infileName;,ios::in);           
        cout << endl << "Enter the filename to read out to: ";
        getline(cin, outfileName);, ios::out);   
            while(getline(input_file, fileLine)){  
                  makeVector(fileLine, Storage);               
        for(int i=0; i<Storage.size(); i++) output_file << Storage[i] << endl;  
        return 0;
    void makeVector(string line, vector <string> &Adjust){
         string vowels = "aeiouyAEIOUY", tempLine = line; 
         for(int i=0; i<line.length(); i++){              
              for(int j=0; j<vowels.length(); j++){      
                   if(line[i] == vowels[j]){              
                        int line_diff = line.length()-tempLine.length(); 
                        tempLine = line.substr(i,line.length());  
    (sorry gogator if you didn't want that reposted - PM me and I'll edit it out)
    Last edited by major_small; 07-01-2005 at 08:21 PM.
    Join is in our Unofficial Cprog IRC channel
    Channel: #Tech

    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Who did you vote for? (anonymous poll)
    By abachler in forum A Brief History of
    Replies: 91
    Last Post: 11-11-2008, 05:55 AM
  2. good or bad game idea you vote?
    By L_I_Programmer in forum Game Programming
    Replies: 3
    Last Post: 03-15-2003, 07:14 AM
  3. Would you vote for Bush again?
    By incognito in forum A Brief History of
    Replies: 92
    Last Post: 03-12-2003, 04:07 PM
  4. vote for ur favorite team~
    By black in forum A Brief History of
    Replies: 27
    Last Post: 05-29-2002, 07:03 AM