Thread: While assigment?

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    17

    While assigment?

    What is wrong with this assigment? while(i<!=-1). the point is that while is done when a negative number is chosen, so that only positive numbers can be chosen
    Last edited by Fenix; 08-24-2009 at 05:45 AM.

  2. #2
    Registered User
    Join Date
    Aug 2009
    Posts
    17
    i figured it out myself, thanks anyway.

  3. #3
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804
    You can't combine two logical operators together. <!= have two of them.
    HOPE YOU UNDERSTAND.......

    By associating with wise people you will become wise yourself
    It's fine to celebrate success but it is more important to heed the lessons of failure
    We've got to put a lot of money into changing behavior


    PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
    IDE- Microsoft Visual Studio 2008 Express Edition

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. overloading the assigment operator
    By Stonehambey in forum C++ Programming
    Replies: 7
    Last Post: 08-09-2008, 12:06 PM
  2. Totally confused on assigment using linked lists
    By Uchihanokonoha in forum C++ Programming
    Replies: 8
    Last Post: 01-05-2008, 04:49 PM
  3. pointer assigment
    By spudtheimpaler in forum C Programming
    Replies: 8
    Last Post: 03-01-2004, 06:27 PM
  4. Overloading Assigment Operator. Freeing Memory.
    By Cheeze-It in forum C++ Programming
    Replies: 3
    Last Post: 11-30-2002, 05:45 AM
  5. Help on Assigment!!!!!!!!!!
    By Unregistered in forum C++ Programming
    Replies: 7
    Last Post: 04-05-2002, 09:07 PM