|
-
February 3rd, 2004, 10:52 AM
#1
_Complex type
How do i print real and imaginary values in _Complex type variable ?
Thanks in advance
Regards
-
February 3rd, 2004, 11:15 AM
#2
nsh123,
Are you using std::complex<typename T> in your design?
If so, then there should be built in support for IOstream operations on the template class.
If you are extending std::complex<typename T> or if you are writing your own complex class, then it is customary to print out the results using a simple format in parentheses with a comma, like (r, i), for example (3.2, 4.3).
Sincerely, Chris.
You're gonna go blind staring into that box all day.
-
February 4th, 2004, 02:45 AM
#3
Thanks Chirs,
I solved the problem. Actually I was talking w.r.t C (sorry for not mentioning)
Regards
Mike.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|