Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. cannot convert parameter 1 from 'double [5]' to 'double'

cannot convert parameter 1 from 'double [5]' to 'double'

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelptutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gentleguy
    wrote on last edited by
    #1

    dear all after i debug my code, the erros displayed here: cannot convert parameter 1 from 'double [5]' to 'double' how to solve this problem, anyone can give me suggestion. thanks

    gentleguy

    _ CPalliniC 2 Replies Last reply
    0
    • G gentleguy

      dear all after i debug my code, the erros displayed here: cannot convert parameter 1 from 'double [5]' to 'double' how to solve this problem, anyone can give me suggestion. thanks

      gentleguy

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      you are trying to assign an array to a double type variable. Iterate through the elements in the array and then you can assign the value at an index to a double type variable BTW it would have been better if you could have posted the code snippet

      Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

      modified on Monday, July 21, 2008 12:50 AM

      1 Reply Last reply
      0
      • G gentleguy

        dear all after i debug my code, the erros displayed here: cannot convert parameter 1 from 'double [5]' to 'double' how to solve this problem, anyone can give me suggestion. thanks

        gentleguy

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        gentleguy wrote:

        anyone can give me suggestion

        Yes: Post the relevant code. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        N 1 Reply Last reply
        0
        • CPalliniC CPallini

          gentleguy wrote:

          anyone can give me suggestion

          Yes: Post the relevant code. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          If I didn't start to know you... I would say you are evil :P

          Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

          modified on Monday, July 21, 2008 5:50 AM

          CPalliniC 1 Reply Last reply
          0
          • N Nelek

            If I didn't start to know you... I would say you are evil :P

            Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

            modified on Monday, July 21, 2008 5:50 AM

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            Nelek wrote:

            If I didn't start to know you... I would say you are evil

            Actually you don't know me well, I'm actually evil! :laugh:

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            N 1 Reply Last reply
            0
            • CPalliniC CPallini

              Nelek wrote:

              If I didn't start to know you... I would say you are evil

              Actually you don't know me well, I'm actually evil! :laugh:

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              N Offline
              N Offline
              Nelek
              wrote on last edited by
              #6

              Ok... confusion solved :laugh: :laugh:

              Regards. -------- M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you “The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson Rating helpfull answers is nice, but saying thanks can be even nicer.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups