I am sorry..well i didnt mean that..well the coding which i've pasted earlier... i would need to implement another sorting method as well.Im choosing selection sort.But i don't know to include it into the coding ...so i would need to be having a menu such as choose either insertion or selection ...and then it would go into the float a..please do guide me.Well it should also do the sorting,comparison and also the time.Thank you.
For pete's sake, man, ditch this program and start with something way more simple. I suggest purchasing a book or at least borrowing one from your local library.
No offense personally, but to carry on with your current endeavor is a waste of your time and ours. Learning how to code up a useful program, while fun, is completely comprehensive in that one step builds upon the previous one. Skipping the small stuff is just a recipe for failure.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
didn't i tell you you were a stupid idiot ?
well, i believe you'll trust me now when i give you posting advices.
otherwise, never forget i'll always be beyind your butt to kick you every time you'll abuse the forums
I'm writing a logging program for virtual COM port connected sensors which is later on going to communicate with a framegrabber for syncronisations purposes. For simplicity I wanted to run the program in a command window but MFC and iostream seems to have a hard time cooperating. I need access virtual serial ports and later on threading for the framegrabber (video input).
First: Is it a dead end to use iostream and a command window for my needs? Do the MFC components refuse running in a command window?
Second: If iostream and MFC should work together (I don't have any previous experience with MFC so I barely know what I'm speaking about) how do I get around my linking problems? I get the evil LNK2005 error, eg.:
nafxcw.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsigned int)" (??2@YAPAXI@Z) already defined in libcpmt.lib(newop.obj)
when I'm linking. It seems to be the "new" and "delete" operators which are the problem. I've already looked through the MS article on the topic (ID : 148652) but I still can't figure out how to get around it.
,plus an almost empty main, gives me the error. What have I gotten wrong?
I'm using MS Visual Studio .NET 2003.
I'm at home now but I think it all boiled down to:
std::cout << "test";
Now when I think about it I guess afx.h is a litte overkill. I got stuck on the solution proposed in the MS article. I used more specific include files like winbase.h to start with. I'm not sure if it caused the same problem.
I did get it to work but I still cannot figure out what the difference is. That was about what I started with. I guess I have to scrutinize every single character to see if I can produce the same error.
Last Visit: 31-Dec-99 18:00 Last Update: 24-Jun-21 8:43