Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Complex number
Forum Updated to NodeBB v4.3 + New Features

Complex number

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 390 Views
  • 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.
  • S Offline
    S Offline
    SeyMohsenFls
    wrote on last edited by
    #1

    Hi guys.
    I have programing a Qt app and want to use complex number.
    I insert the #include <complex> in top of my code. But the Qt says:

    error: use of undeclared identifier 'complex'
    

    when i make a variable like this:

    complex<double> Q;
    

    pls help me. I'm beginner in Qt :-(

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      @SeyMohsenFls said in Complex number:

      #include <complex>

      std::complex<double> Q;

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved