473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

C99 Complex number support in C++

Can someone tell me how can i use the C99 Complex types( _Complex,
_Imaginary etc) in C++?
C++ has its own complex STL that is different from C99 complex types.

Any pointers will be helpful.

Thanks...

Jul 22 '05 #1
3 1697
kartik wrote:
Can someone tell me how can i use the C99 Complex types( _Complex,
_Imaginary etc) in C++?
C++ has its own complex STL that is different from C99 complex types.

Any pointers will be helpful.

Thanks...


C99 complex is a keyword in C, I don't think C++ standard support it for
now, but it might be supported in the future.

C/C++ interpreter Ch supports both C99 complex and C++ complex class.
You can take a look below a link below and see if it helps, ch is also
free to use.

http://www.softintegration.com/demos...ard/c99.html#2

Jul 22 '05 #2
"on********@yahoo.com" wrote:

C99 complex is a keyword in C, I don't think C++ standard support it for
now, but it might be supported in the future.


"complex" is not a keyword in C99. "_Complex" is a keyword, and the
header <complex.h> defines a macro "complex" that expands to "_Complex".
If you don't use that header, "complex" has no special meaning.

--

Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Jul 22 '05 #3
Pete Becker wrote:
"on********@yahoo.com" wrote:
C99 complex is a keyword in C, I don't think C++ standard support it for
now, but it might be supported in the future.

"complex" is not a keyword in C99. "_Complex" is a keyword, and the
header <complex.h> defines a macro "complex" that expands to "_Complex".
If you don't use that header, "complex" has no special meaning.

You are right. :(
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Nige | last post by:
I'm a complete novice to JS. I want to insert the date and time into a document in the format: WB-MMDDHHmm Where: WB- is a fixed string prefix (the whole string is a reference number) MM...
4
by: zender | last post by:
Hi, Is it possible to a value separately to the real or imaginary part of a complex number? Any help appreciated, Charlie The following code shows that .real() and .imag() are not lvalues:
17
by: Chris Travers | last post by:
Hi all; I just made an interesting discovery. Not sure if it is a good thing or not, and using it certainly breakes first normal form.... Not even sure if it really works. However, as I am...
6
by: gc | last post by:
Hi, Why didn't the committee propose a new type for complex numbers with integer components? thanks, gc
4
by: Mantorok Redgormor | last post by:
With what specifier do I use to print a variable of a complex type? The man page for printf doesn't even say. - nethlek
3
by: Richard Harris | last post by:
I understand that C will suport complex values under iso99c. Does anyone know of some examples that will show how to implement complex functions?
12
by: vj | last post by:
Hi! I have a piece of code (shown below) involving complex numbers. The code is not running and giving error ("Invalid floating point operation" and "SQRT:Domain error"). I would be very...
25
by: jacob navia | last post by:
The C99 standard forgot to define the printf equivalent for complex numbers Since I am revising the lcc-win implementation of complex numbers I decided to fill this hole with "Z" for...
2
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Have a complex process where I need to Import a large amount of data then run some transformations on this data then import into DataBase. The transformation involves multiple fields and multiple...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.