View Poll Results: Which of the following 5 PRINTL thinBasic statements will print something different?

Voters
5. You may not vote on this poll
  • 1, 2 and 5 the same output

    1 20.00%
  • All have different output

    0 0%
  • 3 and 4 the same output

    0 0%
  • All will print the same output

    4 80.00%
  • 1 and 2 the same output

    0 0%
  • Only 1, 2 and 3 have the same output

    0 0%
Results 1 to 3 of 3

Thread: Different output?

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    51
    Posts
    8,338
    Blog Entries
    2
    Rep Power
    10

    Different output?

    Here another QOD (Question Of the Day)

    Which of the following 5 PRINTL thinBasic statements will print something different?

    Uses "Console"
    
    String A = "Hello"
    String B = "world"
    
    PrintL A + " " + B
    PrintL A . " " . B
    PrintL A, B
    PrintL EXPAND$("$A $B")
    PrintL A & " " & B
    
    WaitKey
    
    www.thinbasic.com | www.thinbasic.com/community/ | psch.thinbasic.com
    Win10Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

  2. #2
    thinBasic MVPs ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    48
    Posts
    1,239
    Blog Entries
    1
    Rep Power
    135
    quite confusing since the voting possibilities (1,2 and 5 are equal) in the first and in the last line are the same.

    Really mind-cranking!
    maybe no PC currently but always a head full of ideas

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    6,830
    Blog Entries
    3
    Rep Power
    697
    Hehe,

    I just voted #1 and now I see it was a bad choice, I should return my diploma from University of ThinBASIC

    I thought the comma leads to tabbed out output, but was not sure if it will equal in one space between "Hello" and "world". Maybe it could be added to help file that comma separates the strings using space?


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 7 64bit - Intel Core 2 Duo T6600 @ 2.2GHz - 4 GB RAM - NVIDIA GeForce G210M 512MB
    Windows 8 64bit - Intel Core i5-3350P @ 3.1GHz - 8 GB RAM - NVIDIA GeForce GT640 3GB

Similar Threads

  1. CHOOSE and CALL used to do the same thing
    By marcuslee in forum Sources, Templates, Code Snippets, Tips and Tricks, Do you know ...
    Replies: 1
    Last Post: 09-09-2008, 07:01
  2. Intel Atom: the next big thing
    By ErosOlmi in forum Technology
    Replies: 1
    Last Post: 30-05-2008, 23:22
  3. Every Thing But VB6?
    By sfbm in forum Other languages SDK development
    Replies: 6
    Last Post: 06-01-2008, 22:38

Posting Permissions

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