Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PREPROCESSORS Pin
Christian Graus18-May-02 2:50
protectorChristian Graus18-May-02 2:50 
GeneralRe: PREPROCESSORS Pin
Mike Nordell19-May-02 2:19
Mike Nordell19-May-02 2:19 
GeneralRe: PREPROCESSORS Pin
Rama Krishna Vavilala18-May-02 1:54
Rama Krishna Vavilala18-May-02 1:54 
GeneralRe: PREPROCESSORS Pin
Alexandru Savescu17-May-02 22:18
Alexandru Savescu17-May-02 22:18 
GeneralGet Icons from ToolBars Pin
MaTrIX2k217-May-02 20:14
MaTrIX2k217-May-02 20:14 
GeneralRe: Get Icons from ToolBars Pin
Nish Nishant17-May-02 21:42
sitebuilderNish Nishant17-May-02 21:42 
GeneralRe: Get Icons from ToolBars Pin
MaTrIX2k218-May-02 9:32
MaTrIX2k218-May-02 9:32 
GeneralHelp with complex number types. Pin
oRion17-May-02 19:03
oRion17-May-02 19:03 
I am a new user in Visual C++. I have tried calling complex numbers in the usual C++ way. That is by:
#include <complex>
#include <iostream>
using namespace std;

int main()
{
complex<float> a( 3.0, 4.0 );
cout << "Real: " << a.real() << " Image: " << a.imag() << endl;
complex<float> b( 6.0, 7.0 );
a = a + b;
cout << "Real: " << a.real() << " Image: " << a.imag() << endl;
return 0;
}

This works perfectly in the conventional programming, but if I try to call complex types in class function (the OOP way). The compiler don't recognise this type. Why is this so? How should i try to get around this problem?

I have notice a complex template class in VC++ also. Could I use this ? And how should I do it? I am not familiar with template class.
Confused | :confused:
GeneralRe: Help with complex number types. Pin
Carlos Antollini17-May-02 19:21
Carlos Antollini17-May-02 19:21 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 1:45
oRion18-May-02 1:45 
GeneralRe: Help with complex number types. Pin
Mike Nordell17-May-02 23:58
Mike Nordell17-May-02 23:58 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 1:32
oRion18-May-02 1:32 
GeneralRe: Help with complex number types. Pin
Mike Nordell18-May-02 2:07
Mike Nordell18-May-02 2:07 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 2:37
oRion18-May-02 2:37 
GeneralRe: Help with complex number types. Pin
oRion18-May-02 2:43
oRion18-May-02 2:43 
Questiona error has been throwed out when I add records into database? Pin
white jungle17-May-02 18:21
white jungle17-May-02 18:21 
AnswerRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 18:31
Maxwell Chen17-May-02 18:31 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle17-May-02 18:44
white jungle17-May-02 18:44 
GeneralRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 19:02
Maxwell Chen17-May-02 19:02 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle17-May-02 19:11
white jungle17-May-02 19:11 
GeneralRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen17-May-02 19:20
Maxwell Chen17-May-02 19:20 
AnswerRe: a error has been throwed out when I add records into database? Pin
Alexandru Savescu17-May-02 22:22
Alexandru Savescu17-May-02 22:22 
GeneralRe: a error has been throwed out when I add records into database? Pin
white jungle18-May-02 0:28
white jungle18-May-02 0:28 
AnswerRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen18-May-02 7:56
Maxwell Chen18-May-02 7:56 
Generalabout DCT & IDCT Pin
storein17-May-02 16:22
storein17-May-02 16:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.