Page 10 of 30 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 297

Thread: "Hello Ubuntu" in every programming language

  1. #91
    Join Date
    Jul 2007
    Beans
    261
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: "Hello Ubuntu" in every programming language

    i love batch batch is my first language its so easy ive writen a program better than this terminal i will learn bash kool is it in any way graphicaly capable
    iaaaaaaasoqjdokasjfidsjfi

  2. #92
    Join Date
    Dec 2005
    Beans
    527
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: "Hello Ubuntu" in every programming language

    hehe, graphical stuff and bash are a no go, but its for scripting not really actually application use. I would suggest python or ruby for gui stuff.

  3. #93
    Join Date
    Jul 2007
    Beans
    261
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: "Hello Ubuntu" in every programming language

    i expected that but ppl say its better than batch um can you direct me to a site to learn that bash
    iaaaaaaasoqjdokasjfidsjfi

  4. #94
    Join Date
    Jul 2005
    Location
    Ontario, Canada
    Beans
    366
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: "Hello Ubuntu" in every programming language

    A version in Qt4.

    nameInput.hpp
    Code:
    #ifndef NAMEINPUT_HPP
    #define NAMEINPUT_HPP
    
    #include <QLineEdit>
    #include <QStatusBar>
    #include <QVBoxLayout>
    
    class NameInput : public QWidget {
        Q_OBJECT
        private:
            QLineEdit *input_;
            QStatusBar *msg_;
        signals:
            void showGreeting( const QString &greeting );
        private slots:
            void buildGreeting( const QString &name ) { emit showGreeting( "Welcome to Ubuntu, " + name ); }
        public:
            NameInput( QWidget *parent=0 );
    };
    
    #endif // NAMEINPUT_HPP
    nameInput.cpp
    Code:
    #include "nameInput.hpp"
    
    NameInput::NameInput( QWidget *parent ) :
        QWidget( parent ),
        input_( new QLineEdit( tr( "Enter your name" ), this ) ),
        msg_( new QStatusBar( this ) ) {
        
        connect( input_, SIGNAL( textEdited( const QString & ) ),
                    this, SLOT( buildGreeting( const QString & ) ) );
        
        connect( this, SIGNAL( showGreeting( const QString &) ),
                    msg_, SLOT( showMessage( const QString & ) ) );
        
        QVBoxLayout *layout = new QVBoxLayout();
        layout->addWidget( input_ );
        layout->addWidget( msg_ );
        
        setLayout( layout );
        resize( sizeHint() );
    };
    main.cpp
    Code:
    #include <QApplication>
    
    #include "nameInput.hpp"
    
    int main( int argc, char *argv[] ) {
        QApplication app( argc, argv );
        
        NameInput nameIn;
        nameIn.resize( 350, 100 );
        nameIn.show();
        
        return app.exec();
    }
    Put everything in a seperate directory and then:

    Code:
    qmake -project
    qmake
    make

  5. #95
    Join Date
    Jul 2006
    Location
    Don't remember anymore
    Beans
    141
    Distro
    Ubuntu 6.06 Dapper

    Re: "Hello Ubuntu" in every programming language

    Eh, bite me, DoktorSeven
    "Who d'you know who's lost a buttock?" --Tonks
    Linux user #430538 (Machine #335692)/Ubuntu user 7858 (Machine #9033)
    myAge.today = myAge.yesterday++

  6. #96
    Join Date
    Jun 2006
    Beans
    41
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by Nekiruhs View Post
    Whitespace (For real):

    The blue is whitespace, not the white. I had to use an image because the forums rejects true whitespace
    Are you sure you didn't miss some of the program? A similar example is much longer.

    http://compsoc.dur.ac.uk/whitespace/name.ws

  7. #97

    Re: "Hello Ubuntu" in every programming language

    IBM RPGLE on the System i at V5R4M0

    h Copyright('Jason Olson')
    h Text('helloubuntu')

    d Response s 10a

    /free

    Dsply ('Hi! What Is Your Name?') ' ' Response;
    Dsply ('Hello ' + %trim(Response) + '! Welcome to Ubuntu!');

    *inlr = *on;

    /end-free

  8. #98
    Join Date
    Mar 2007
    Location
    /Earth/USA/MD/Home
    Beans
    826
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by theturtlemoves View Post
    Are you sure you didn't miss some of the program? A similar example is much longer.

    http://compsoc.dur.ac.uk/whitespace/name.ws
    Oops. .... Scrollbars are evil. This one may take a while.
    In Soviet Russia, cake lies you!
    My Blog | Email Me

  9. #99
    Join Date
    Mar 2007
    Location
    somewhere cold
    Beans
    70
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: "Hello Ubuntu" in every programming language

    Quote Originally Posted by rbprogrammer View Post
    why would you do that?? ..
    The title of the thread is 'Ubuntu in every programming language'

    It does not say that the language must 'RUN' on ubuntu (even though this could run, potentially, using Wine), it just has to be a programming language. Now, Windows Shell Scripting (or whatever you want to call it) might be debatable when it comes to the clinical definition of a programming language, but the way I look at it, if bash makes it, so should any scripting language, even one as pathetic as our old friend cmd.exe.
    for beer in $(ls /home/fridge); do
    drink $beer
    done

  10. #100
    Join Date
    Apr 2007
    Location
    In front of the computer
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: "Hello Ubuntu" in every programming language

    REXX

    Code:
    say "Hi! What is your name?"
    name=Linein()
    say 'Hello 'name'! Welcome to Ubuntu!'

Page 10 of 30 FirstFirst ... 8910111220 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •