Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums
Members
Pages
Search
Help
Register
Login
Home
Home
»
Community
»
Newbie corner
»
Algorithms and Vectors
Show:
Today's Messages
::
Show Polls
::
Message Navigator
E-mail to friend
Re: Algorithms and Vectors
[
message #28142
is a reply to
message #28138
]
Wed, 18 August 2010 17:20
281264
Messages:
272
Registered:
June 2010
Location:
Spain
Experienced Member
Hi Honza,
Roger ! however I have noticed the following:
1.- even with < in the class the code does not compile, why?
2.- if I replace the class by the function:
bool operator<(const A& lhs, const A& rhs){ return lhs.a<rhs.a; }
then, it does compile but it does not behave as expected (it returns -1).So it does not work.
My query is how to “find” that an element within Vector<A> that complies with a criterion, for instance a==5;
Note: I have tested Sort algorithm and works fine.
Any suggestions?
Thanks,
Javier
Report message to a moderator
[
Message index
]
Algorithms and Vectors
By:
281264
on Tue, 17 August 2010 22:58
Re: Algorithms and Vectors
By:
mdelfede
on Tue, 17 August 2010 23:45
Re: Algorithms and Vectors
By:
281264
on Wed, 18 August 2010 12:30
Re: Algorithms and Vectors
By:
dolik.rce
on Wed, 18 August 2010 16:06
Re: Algorithms and Vectors
By:
281264
on Wed, 18 August 2010 17:20
Re: Algorithms and Vectors
By:
dolik.rce
on Wed, 18 August 2010 18:52
Re: Algorithms and Vectors
By:
281264
on Wed, 18 August 2010 19:49
Re: Algorithms and Vectors
By:
mr_ped
on Fri, 20 August 2010 21:05
Re: Algorithms and Vectors
By:
281264
on Mon, 23 August 2010 22:33
Previous Topic:
Open An image upon startup
Next Topic:
Assert failed in core/value.h line 464
Goto Forum:
- Community
U++ community news and announcements
PR, media coverage, articles and documentation
U++ Webs: Functioning, Layout , Design, Features and Structure of these forums, homepage etc.
Coffee corner
Newbie corner
U++ based job offers
- Developing U++
U++ Developers corner
External resources
Releasing U++
UppHub
Bugs (& fixes)
Documentation
U++ TheIDE and Library: Releases and ChangeLogs
Mac OS
Android
- U++ Library support
U++ Library : Other (not classified elsewhere)
U++ Core
Look and Chameleon Technology
U++ Libraries and TheIDE: i18n, Unicode and Internationalization
U++ SQL
U++ MT-multithreading and servers
U++ Callbacks and Timers
U++ Widgets - General questions or Mixed problems
TopWindow&PopUp, TrayIcon
Menus&Toolbars
StatusBar&InfoCtrl
Splitter
TabCtrl
Slider&ProgressIndicator
ArrayCtrl, HeaderCtrl & GridCtrl
TreeCtrl
RichText,QTF,RTF...
LineEdit, EditFields, DocEdit
Draw, Display, Images, Bitmaps, Icons
FileSel&FileList, Path
CalendarCtrl
Skylark
ScatterDraw & ScatterCtrl
Archive
- U++ TheIDE
U++ TheIDE: Other Features Wishlist and/or Bugs
U++ TheIDE: Compiling, Linking, Debugging of your packages
U++ TheIDE: Installation, Compiling and Running of theide
U++ TheIDE: CodeEditor, Assist++, Topic++
U++ TheIDE: Packages
U++ TheIDE: Layout (Forms) Designer
U++ TheIDE: Icon designer
- Extra libraries, Code snippets, applications etc.
U++ users applications in progress and useful code snippets, including reference examples!
U++ Esc Interpreter, Esc Macros and templates
U++ and AI
C++ language problems and code snippets
Applications created with U++
OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc
-=]
Back to Top
[=-
[
Syndicate this forum (XML)
] [
] [
]
Current Time:
Sat Jun 21 20:08:53 CEST 2025
Total time taken to generate the page: 0.03904 seconds