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

Am I doin it rite?

Name: Anonymous 2007-03-08 16:11 ID:ko8I8fKq


#!/usr/local/bin/python
inc=0
length=int(raw_input("How long is looooooongcat?\n"))
print "    ^_____^            \n"
print "   /       \           \n"
print "  |  #    # |          \n"
print "  \     @   |          \n"
print "   \   _|_ /           \n"
print "   /       \________   \n"
print "  / ________  ___   \  \n"
print "  | ________   \ \__/  \n"
print "   |        \__/       \n"
while inc<length:
    print "    |        |        \n"
    inc=inc+1
print "   /          \        \n"
print "  /   ______   \       \n"
print "  |  /      \  |       \n"
print "  | |        | |       \n"
print " /  |        |  \      \n"
print " \__/        \__/      \n"

Name: Kyatto 2007-03-15 11:57 ID:Fm0uEk5/

Fixed! Now with NO errors OR Warnings :D and in the Longcat colours too! maybe if /r/ I'll make the cat white and the back black, but not atm

//Longcat for Visual Studio 2005 C++
#include <iostream>   //Includes input/output library
using namespace std;  //Removes need for std:: all the time

int main()  //Main Function - required
{
    system("COLOR F8");        //Changes background colour to white and text colour to gray
    int longcat = 0;        //User input length of Longcat
    cout << "How long is Looooooooongcat!?";  //Message output to user
    cin >> longcat;            //User input

    //Longcat image displayed on screen - cuter than before

    //Head
    cout << "    ^_____^            \n";
    cout << "   /       \\           \n";
    cout << "  |  @    @ |          \n";
    cout << "  \\     v   |          \n";
    cout << "   \\   _|_ /           \n";
    cout << "   /       \\________   \n";
    cout << "  / ________  ___   \\  \n";
    cout << "  | ________   \\ \\__/  \n";
    cout << "   \\        \\__/       \n";

    //Mid-section
    for( int c = 0 ; c <= longcat ; c++)        //For loop - will output the mid-section of Longcat for as many units as stated by the user
    {
        cout << "    |        |         \n";    //Midsection to be output
    }//End For Loop

    //Legs
    cout << "   /          \\        \n";
    cout << "  /   ______   \\       \n";
    cout << "  |  /      \\  |       \n";
    cout << "  | |        | |       \n";
    cout << " /  |        |  \\      \n";
    cout << " \\__/        \\__/      \n\n";

    cout << "Longcat is... LOOOOOONG\n";

    //Post "Press any key to continue . . ."
    system("PAUSE");    //Prevents program from closing as soon as everything has been output

    return 0;    //Exits program
} //Close int main()


Enjoy!

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