Is std::map, how to use for_each to execute the map's second's memfun?
Following are my code;
CMapTest(int nx = 0)
x = nx;
std::map<int, CMapTest*> test;
for (int i = 0; i < 10; ++i)
test.insert(std::make_pair(i, new CMapTest(i * 100)));
// hot to use for_each to replace the for process?
for(std::map<int, CMapTest*>::iterator iter = test.begin(); iter !=
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderat...Trial of Musatov's theory: double spaced 'e x p a n d s' and single spaced 'c o n t r a c t s'. Does the spacing post-processing appear equal? If so, what force was lost and where did it g
Musatov's theory 'The space between spaces expands and contracts.'
Would this give time a direction? Musatov
...It's on-it's off-it's on, it's off -WHY?
IS THIS THE CORRECT FORUM? Hope so.
We have three computer networked at home...all with Windows XP. one of those
is a laptop. Some mornings all 3 can see each other and transfer
files...then mysteriously one or more will disappear. No contact....then
later it's back. The laptop is the worst. Most often it won't let us
in...but sometimes it will. No obvious reason. The most INFURIATING part is
the message "see your administrator". Dammit Bill Gates...don't you realize
that most networks are small offices without a Majestic Royal Administrator
sitting his i...Fans rap Apple's 'crap' Map app
I do think that the fickle Apple Fans are an ungrateful lot.
They've just got their brand new 1OS 6, complete with freedom *not* to be
able to use Google maps, and all they can do is complain!
Worthless wretches - obviously ought to be expelled from the Apple barrel.
Just look at some of the trivia that these folks complain about, after all
Apple's hard work:-
Apple today faced the ire of thousands of irritated iOS 6 users who upgraded
to the new version of the iDevice operating system only to discover the
Cupertino's new Maps app is, well, pants....Referencing an Image's Map's Link's Details
hope that you can help...
I have a banner on my webpage, called (creatively) "banner".
This banner uses a map called "bannerMap".
The map has an area called "homeLink".
The area's href is "home.htm".
How do I reference this href?
I have tried:
document.bannerMap.homeLink.href - FAILED
document.banner.bannerMap.homeLink.href - FAILED
document.homeLink.href - FAILED
document.banner.homeLink.href - FAILED
Has anyone tried this before? Is it possible? What is the answer?!...More factory sealed FPGA's with C of C's
I have more FPGA's with C of C's that I can supply below facotry
direct pricing. Small quantities ok. These have all been purchased
thru factrory direct channels and in most cases I can tell you exactly
where they came from. We have aquired these from VMI and SMI programs
that we have with major OEM's and CM's.
Jon E. Hansen
Pyramid Technologies Inc.
CERTIFIED ISO 9001:2000
XC2V3000-4FG...SGI's 'make' strips -LANG:std from the link line??
I'm trying to use autoconf to generate makefiles for a combination C,
C++, and Fortran program.
The C and Fortran parts are built into static libraries which are then
supposed to link with the C++ object files to create the executable.
The problem is that using autoconf's 'CXXFLAGS' variable to pass
'-LANG:std' to SGI's 'make' doesn't work. 'make' is stripping
-LANG:std from the link line!
It works fine if I paste it into a terminal window command; but if
it's in the Makefile make removes it.
Any thoughts on how to g...Implementing GO4's Observer pattern for std::stirng and std::vector/std::map
I want to "observe" changes to std::string and std::vector/std::map
structures. The idea being that whenever code modifies a string, or
adds/deletes a collection element, my code is notified so that I can
invalidate view objects, etc.
I know that I can wrap these data structures within my own classes and add
the observer hooks to my accessor routines. This is a tedious and
error-prone process for things like std::string with lots of methods.
I'm curious if others have found a good way to do this for STL strings and
containers. All my reading warns against su...The "Tipping Point" for app's, ALL app's ?
tipping point -
The point at which a series of small ineffective changes
acquires enough pressure or importance to cause a larger,
more significant change.
The point at which the buildup of minor incidents reaches
a level that causes someone to do something
they had formerly resisted.
Lots of Mac users, myself included, are impatiently waiting
for the "tipping point" to be reached in lots of app's.
("MacSpeech Dictate" in particular)
The point where the app's are _immediately...What's the C++ community's feeling about lambda(or closure) in C++?
I know this topic sounds kind of old and dry(and shallow, maybe :)),
but, you see, lately I found that there's all the fuss about closure in
Java, so I poked around for a little, and did find some valuable
And I started to remember that there were a proposal(actually two)
about lambda/closure for C++(see
They're all pretty well-formed and sound, though I found Bjarne's a
little more comprehensive.
It simply seems that the closure id...Free math' app' threatens commercial math' app's
For Mac math' buffs, a new FREE open-source math' app'
called SAGE will be available for free shortly, which
claims to beat expensive commercial software
like Mathematica which costs $2,500
Some team of math' experts at University of Washington are
developing the app'
Supposedly SAGE has already won awards in open competition at
some world-wide math' conference.
Mark Conrad <firstname.lastname@example.org...How to link obj's from c-source with obj's from c++-source
I compiled 2 simple source-files with cl -c main.cpp and cl -c test.c.
test.c contains just a simple function, which is declared in test.h.
test.h is included in test.c and in main.cpp.
When I try to link the objects with link main.cpp test.c -out:prog.exe
I get the error:
"main.obj : error LNK2019: unresolved external Symbol "int __cdecl
greater(int,int)" (?greater@@YAHHH@Z), called in function _main
prog.exe : fatal error LNK1120: 1 unresolved external Symbol"
What have I to do, to be able to link those objects together?
"Guido Belligoi" ...Any XL C/C++'s option to determine the compiler's predefined macros
$ xlc++ -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Is there any XL C/C++'s option to determine the compiler's predefined
In article <email@example.com>,
Alex Vinokur <firstname.lastname@example.org> writes:
> AIX 5.3
> $ xlc++ -qversion
> IBM XL C/C++ Enterprise Edition V8.0 for AIX
> Version: 08.00.0000.0014
> Is there any XL C/C++'s option to determine the compiler's predefined
> Ale...Q: C macro's for lvalue statements ? Any C marco Guru's out there ?
I've got a problem implementing some macros that would make my code much
I have a set of macros that create variable names depending of the content
of some other define.
An example (of how it should look like in the end):
// --------------- cut
#define BASE_NAME module1
// the macro(s) which I need help for :-)
#define MAKE_VARNAME2(base, var,val) int var#_#base = val
#define MAKE_VARNAME(var, val) MAKE_VARNAME2(BASE_NAME, var, val)
// the usage example
// --------------- cut
which should expand to