Thread: Really simple question

  1. #1
    Registered User
    Join Date
    Oct 2011

    Really simple question

    I have a really simple question.
    Is it possible to do this?
    Examplearray1[a] = Examplearray2[b]
    Because in my program i get rubbish when i print Examplearray[b]

  2. #2
    casual coder spaghetticode's Avatar
    Join Date
    Jan 2011
    Hesse, Germany
    The way you ask your question makes me suggest what you wanted was:

    Examplearray2[b] = Examplearray1[a]
    The source of an assignment always goes right of the operator, the target goes left of it.
    Last edited by spaghetticode; 12-09-2011 at 05:57 AM.
    Hardware: Intel® Core™ i7-3630QM CPU @ 2.40GHz × 8 | Acer Aspire V3-771G
    OS: Windows 10 Home

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. really simple question
    By JezW in forum C Programming
    Replies: 8
    Last Post: 04-25-2009, 07:25 PM
  2. simple question please help!!!!!!!!
    By masood123 in forum C++ Programming
    Replies: 3
    Last Post: 07-01-2008, 09:42 PM
  3. simple simple design question
    By Chaplin27 in forum C++ Programming
    Replies: 6
    Last Post: 05-31-2005, 11:33 PM
  4. a simple question??
    By Bob the Builder in forum A Brief History of
    Replies: 4
    Last Post: 05-07-2002, 12:03 PM
  5. a simple C++ question
    By DramaKing in forum C++ Programming
    Replies: 7
    Last Post: 02-08-2002, 08:13 PM

Tags for this Thread