CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 5 of 6 FirstFirst ... 23456 LastLast
Results 61 to 75 of 80
  1. #61
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Programming Problem.

    who knew programmers have a sense of humor.
    Albiet one which is often not understood by mere mortals.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  2. #62
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Programming Problem.

    Quote Originally Posted by TheCPUWizard
    Albiet one which is often not understood by mere mortals.
    But those who understand it can laugh their **** off
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  3. #63
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Programming Problem.

    Quote Originally Posted by NoHero
    But those who understand it can laugh their **** off
    Of course, if that literally happens, they will have serious issues with certain bodily functions.

    'Nuf said.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #64
    Join Date
    Mar 2004
    Location
    Israel
    Posts
    76

    Re: Programming Problem.

    Good joke :-)

  5. #65
    Join Date
    Sep 2006
    Posts
    95

    Re: Programming Problem.

    Quote Originally Posted by Graham
    Code:
    Play = true;
    while(1)
    {
    	Play = !Play;
    }
    When that completes, Play will have the value "maybe". This should solve the problem.
    Err.. this code will only work on a quantum computer, can someone test this?
    On Error Kill(User)

  6. #66
    Join Date
    Mar 2004
    Location
    Israel
    Posts
    76

    Question Re: Programming Problem.

    life from point of view of programming (simple model)


    Code:
    life = true
    soul = true
    
    while (soul = true)
    {
    brain = true
    numbers = true
    computer = 1
    while (numbers = true)     // attention - there are paralllel processes !!!
    {
          computer++
    }
    
    // here numbers = false and soul = true and brain = true
    }
    
    soul = false
    life = false
    what do you think about this ???

  7. #67
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: Programming Problem.

    Quote Originally Posted by KrisSimonis
    Err.. this code will only work on a quantum computer, can someone test this?
    Yes you are correct. I just tried it on my quantum computer and it works perfectly.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  8. #68
    Join Date
    Sep 2000
    Location
    FL
    Posts
    1,452

    Re: Programming Problem.

    Quote Originally Posted by TheCPUWizard
    I have written a game playing program. Unfortuately, it is not working the way I want. Please help, Here is the relevant code.

    Code:
        Play = true;
    I tried this code in Linux but it didn't work

    Do you think you could convert it for me?

  9. #69
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Programming Problem.

    Quote Originally Posted by sotoasty
    I tried this code in Linux but it didn't work

    Do you think you could convert it for me?
    Err i think this should work
    Code:
    Set Play = new True
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  10. #70
    Join Date
    Sep 2006
    Posts
    95

    Re: Programming Problem.

    Quote Originally Posted by GremlinSA
    Err i think this should work
    Code:
    Set Play = new True
    Aaah! Watch out! It's a member of the New World Order, trying to redefine the truth! He stated it him self.. NEW TRUE!!!
    Quickly, lets put on our aluminum helmets to protect us from the pod people!
    On Error Kill(User)

  11. #71
    Join Date
    May 2002
    Posts
    10,943

    Re: Programming Problem.

    Well, if we want to redefine truth, then we should class it.

    PHP Code:
    class redefine
    {
      function 
    newTrue()
      {
        
    flush($true);
        return 
    false;
      }
    }

    $true = new redefine();
    $true->newTrue();
    redefine::newTrue(); 
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  12. #72
    Join Date
    Mar 2004
    Location
    Israel
    Posts
    76

    Re: Programming Problem.

    I go to other infinity threads. I'll be here later

  13. #73
    Join Date
    May 2005
    Posts
    399

    Re: Programming Problem.

    Quote Originally Posted by TheCPUWizard
    I have written a game playing program. Unfortuately, it is not working the way I want. Please help, Here is the relevant code.

    Code:
        Play = true;
    Try powering down your system for a few days and let dust settle on it...Time is a healer

  14. #74
    Join Date
    May 2007
    Location
    Bangalore India
    Posts
    262

    Re: Programming Problem.

    Hey, I also want to PLAY.

    I may not be a good player but would like to PLAY anyway.
    Dont forget to rate my post if you find it useful.

  15. #75
    Join Date
    Oct 2003
    Location
    Merate-North Italy
    Posts
    230

    Re: Programming Problem.

    you all are missing the point

    Code:
    Play=true;
    // wait for Play to get free
    while(fopen(Play, "a") == NULL)
    {
        Sleep(1000);
    }
    fcloseall();
    CopyFile(Play, "C:\Play.pdf")

    the fact is that an external tool is holding the truth, you must wait for the end of the elaboration to go on.
    ++++++++[>++++++++<-]>+.<+++[>++++<-]>+.<++[>-----<-]>.<+++[>++++<-]>++.<+++[>----<-]>-.----.
    God does not play dice with the universe.(A.Einstein)

Page 5 of 6 FirstFirst ... 23456 LastLast

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured