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. Create array of complex numbers.

Create array of complex numbers.

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresbusinesstutorialquestion
3 Posts 2 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.
  • M Offline
    M Offline
    Michael Liu
    wrote on last edited by
    #1

    Any one knows how to create an array of complex numbers? Do you think I can use CArray or other collective class? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)

    M 1 Reply Last reply
    0
    • M Michael Liu

      Any one knows how to create an array of complex numbers? Do you think I can use CArray or other collective class? Thanks. mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      Why not ?

      CArray ptArrayOfMyComplexNumber;

      Max.

      M 1 Reply Last reply
      0
      • M Maximilien

        Why not ?

        CArray ptArrayOfMyComplexNumber;

        Max.

        M Offline
        M Offline
        Michael Liu
        wrote on last edited by
        #3

        I'm using C++ complex template class. I got problem when I declared an array of complex numbers. e.g. I declared it like this: CArray, complex> ptArrayComplexNumber; The declaration above is not right for the VC compile. So I changed to CArray, float> ptArrayComplexNumber; This one is good for compile, but I can't do insertion complex number into it or other actions. Do you know how to do it? Best regards, mIchAel Liu __________________________________________________________ The secret of business is to know something that nobody else knows. ;)

        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