|
Usef Marzbani wrote: Any question?
Yes, why don't you check return values in your sample code?
BTW use <pre> tags around code snippets.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Because I'm not going to design MS Word in this forum
|
|
|
|
|
I don't know if the Office guys did, it is so buggy indeed...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I hate MFCs.. [ read it in Brendan Fraser's tone.. I hate mummies..*gunshot* ]
<br />
ifstream ifs("E:\\test.txt",ios::in);<br />
string st; <br />
vector<string> vec_words;<br />
while (ifs>>st) <br />
{<br />
vec_words.push_back(st);<br />
}<br />
ifs.close();<br />
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
modified on Sunday, April 6, 2008 3:44 AM
|
|
|
|
|
VuNic wrote: I hate MFCs.. [ read it in Brendan Fraser's tone.. I hate mummies..*gunshot* ]
Me too.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Cheers! .. watch out! we might have scratched the MFC lord Mark Salsbery. I guess he loves it so much that he may even wish to call it :-
Mark's Favorite Classes.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
|
Yep in general,Mummies raise up from random locations and they are certainly not alone. And most of them look invincible most of the time.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
If I remember it right, a laaaawwng time ago, I read a similar solution to the same problem on a C++ book. I don't know, but I think it was that Bruce Eckel's book.
[Add] Confirmed that book. How amazing you remembered it right. Or, may be if you are working on plain C++, you must be doing it occasionally. [/ADD]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Sunday, April 6, 2008 4:33 AM
|
|
|
|
|
Rajesh R Subramanian wrote: I read a similar solution to the same problem on a C++ book
It's in a book ?? I'm proud I'm siltently becoming an author. Anyway my last project dealt with a lot of streams that at the end of the project I had to find F,S,T,R,E,A,M keys' imprints lost on my keyboard.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
VuNic wrote: It's in a book ?? I'm proud I'm siltently becoming an author.
Too fast cowboy. I meant to say that this kind of in and out streaming is typical to plain C++. You providing such a solution make you appear to be a plain C++ programmer.
I would have suggested something like CStdioFile, but the bloody plain C++ works well too.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: plain C++
Real men.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
You mean __asm?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
00000001.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
0x00000005!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
sorry to know that you hate MFC, but I wanna know whether MFC can plot a 3D graph from 3 arrays or not. If not, would you please suggest some API or source code to achieve the requirements??
actually i wanna to plot many points in a 3d graph where the coordinates of 3 diferrent axes are stored at 3 different txt files.
Thank you for your code for solving my previous question!
cheers,
john
|
|
|
|
|
No programming question in Lounge.
*Dang!* Oops hehe ok ok. We are in the forum.
johndoelee wrote: MFC can plot a 3D graph from 3 arrays or not
You mean you want to visually mark voxels in a 3D space?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
No need to be so specific like voxels
I need a simple 3D line graph. The input will be the x y z coordinates from 3 different arrays.
Thank you!
Cheers,
John
|
|
|
|
|
No 3D, but Cedric Moonen's charting control[^] worked for me.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
How about This?[^]
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Thank you for your recommendation. I think it meets my requirements, but I cant implement it due to set-up problems. anyway, thank you very much!
Cheers,
John
|
|
|
|
|
Also, I need to mention you that my present project[^] is in plain C++. Loads of fun. No, really.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
You've taken up the red pill. Welcome to the dark world. I've spent enough time wrestling with plain C++. Some STL atleast? Nope. To be true our prototypes are almost built with plain C. They are kind enough to wrap them up in a class atleast. As you have mentioned in your thread, it's a s1,s2,s3,s4.. t1,t2,t3,var1*, var2**,var*** array1[], array2[]. all the way!.They look at "vectors" as a database! They feel it's complex operation to put something into a vector. Instead they simply use pointers. I felt dizzy at first but later managed to get along with them.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
VuNic wrote: I hate MFCs
I love it. I'll want you guys to sit in a row and write an ActiveX control from scratch in plain C++. I'll give you paper towels to wipe that sweat and blood while you do the dodgy thing.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: I love it.
The problem is yours.
(just kidding).
Rajesh R Subramanian wrote: I'll want you guys to sit in a row and write an ActiveX control from scratch in plain C++. I'll give you paper towels to wipe that sweat and blood while you do the dodgy thing
ATL , IMHO is much better for the above task. We can even write the ActiveX as you proposed: we've Jeff Glatt's wonderful article series on our side [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|