l********a 发帖数: 1154 | 1 来自主题: Programming版 - map析构
跟踪了2天才找到这个问题,难道dll内自定义的类不能使用stl容器吗?
像我这种定义的容器数据非指针,该怎么释放呢?
没有其他解决办法吗?我这个map没有跨dll传递啊?
在testGA类定义里面声明,
构造函数里面map.insert(make_pair())添加内容,使用完后立即clear(),
在析构函数内没有操作map,因为已经被clear()了,又不是指针,无法delete
下断后出错在~testGA的时候会调用~map,
testGA.dll!std::map,std::
allocator >,double,std::less
char>,std::allocator > >,std::allocator
char,std::char_traits,std::allocator > const ... 阅读全帖 |
|
l***h 发帖数: 9308 | 2 【 以下文字转载自 Hardware 讨论区 】
发信人: lldyh (咦哈), 信区: Hardware
标 题: Re: Bing Map改进,google map下坡
发信站: BBS 未名空间站 (Thu Apr 29 14:21:55 2010, 美东)
问个bing map的问题:
按左下角打印机图标打印路线图,在弹出新的窗口中,有混合的map and text,但是路
线text能显示,起点、重点和路线的map没显示,就3个大白框。
Firefox 3.5.9,Silverlight用的是最新的4.0,启用了JavaScript |
|
r*******u 发帖数: 156 | 3 Just got a task from my boss. He had a map of USA made by his previous
student, with some useful layers. He wants me to make seperated counties map
of our state from the old map of whole USA.
I tried to query and select using names of state and county. But all the map
of USA is still shown. The county is only highlighted. Can anybody tell me
how to select and show only the county map (without other counties and
states)? Many thanks.
I am a beginner on ArcGis. |
|
w*******y 发帖数: 60932 | 4 TomTom XL 340M 4.3-Inch Portable GPS Navigator (Lifetime Maps Edition):
http://www.midnightbox.com/cgi-bin/category.cgi?item=10017470-1
is $85.95 + $3.99 shipping + tax
Not refurbished on the website it states NEW!
* Preloaded with maps of the US, Canada and Mexico with Lifetime Map Updates
* Preloaded with more than 7 million points of interest in over 60
destination categories--gas stations, restaurants, hotels, ATMs and more
* IQ Routes Technology calculates the fastest route possible based... 阅读全帖 |
|
|
t*****a 发帖数: 5180 | 6 SOME OF US USE MAPS CONSISTENTLY ON A DAILY BASIS (DISPATCHER) AND I HATE
THAT NEW MAP, THE FACT THAT GOOGLE IS TAKING THE CLASSIC MAP AWAY REALLY
MAKES NO SENSE WHATSOEVER. LEAVE US THE OPTION AND THOSE THAT WANT TO USE
THE NEW ONE, USE IT; BUT FOR THOSE OF US THAT HAVE BECOME SO VERY
COMFORTABLE WITH THE CLASSIC LET US CONTINUE USING IT....CHOICES ARE VERY
IMPORTANT.
You guys are honestly the worst. I know that our complaints can be ignored
because Google has monopolized the industry and ther... 阅读全帖 |
|
f********a 发帖数: 165 | 7 given Map hashMap 和 Set hashset,当set的key出现在map里面时,删除Map
里面的元素,最后返回map.
public void modifyMap(Map hashmap, Set hashset)
{
}
面试官说3行就可以搞定,那位大侠说说? |
|
l******9 发帖数: 579 | 8 【 以下文字转载自 Programming 讨论区 】
发信人: light009 (light009), 信区: Programming
标 题: error draw map from shape file Python 3.2 basemap
发信站: BBS 未名空间站 (Sat Feb 14 13:51:37 2015, 美东)
I am working on drawing map from shape file in Python 3.2 basemap.
But, the longitude values at the bottom axis are only shown partially. Also,
all latitude values are missing.
Here is my python code.
import shapefile as sf
import sys
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.basemap import Basemap
ma... 阅读全帖 |
|
a*******n 发帖数: 64 | 9 题目大概是:设计一个类似于普通map的class,主要的不同是添加每个元素的时候,有
一个时间参数long type, 单位是ms。比如50000,如果50000ms passes,这个元素没有
被人为删除的话,它需要被自动删除。base class的定义myMap::add, myMap::erase都
是pure virtual function。
我当时给出的答案是用STL::map存储,然后用STL:unordred_map存储<
current_time+时间参数, a list of elements of 1st map>,系统时间前进的时候,
去第二个map里找到list删除第一个map里的element。答得很笼统,当时要求写具体的
code,不知道C++里涉及到系统时间的函数是啥。 |
|
c**********a 发帖数: 92 | 10 The Company:
Faraday Future (FF) is a California-based mobility company, leveraging the
latest technologies and world’s best talent to realize exciting new
possibilities in sustainable transportation. We’re producing user-centric,
technology-first vehicles to establish new paradigms in human-vehicle
interaction. We’re not just seeking to change how our cars work – we’re
seeking to change the way we drive. At FF, we’re creating something new,
something connected, and something with a global impac... 阅读全帖 |
|
l****n 发帖数: 6896 | 11 【 以下文字转载自 Reader 讨论区 】
发信人: lesson (伤心吉他客), 信区: Reader
标 题: 新发现:利用 Google Maps 让阅读更身历其境
发信站: BBS 未名空间站 (Fri Nov 18 05:01:15 2011, 美东)
Ok, 我大概不是世界上第一个这样做的人,但我很高兴自己发明了这个方法。拿出来野
人献曝一把。
最近在读 Stephen King 的新书 "11/22/63", 它的内容与美国甘迺迪总统被刺的历史
有关。作者考证的功夫做得十分详尽,连街名地址、大街上的街景等等,都有说明。例
如底下这段文字:
“... bus stopped at the corner of Oak Lawn and Wycliff ...There was a big
stone church on the corner. Lee sauntered over to the iron railing running
in front of it ..."
借由 Google Maps 的 street view 功能,我可以亲眼看到书中所描述的公车站... 阅读全帖 |
|
l****n 发帖数: 6896 | 12 【 以下文字转载自 Reader 讨论区 】
发信人: lesson (伤心吉他客), 信区: Reader
标 题: 新发现:利用 Google Maps 让阅读更身历其境
发信站: BBS 未名空间站 (Fri Nov 18 05:01:15 2011, 美东)
Ok, 我大概不是世界上第一个这样做的人,但我很高兴自己发明了这个方法。拿出来野
人献曝一把。
最近在读 Stephen King 的新书 "11/22/63", 它的内容与美国甘迺迪总统被刺的历史
有关。作者考证的功夫做得十分详尽,连街名地址、大街上的街景等等,都有说明。例
如底下这段文字:
“... bus stopped at the corner of Oak Lawn and Wycliff ...There was a big
stone church on the corner. Lee sauntered over to the iron railing running
in front of it ..."
借由 Google Maps 的 street view 功能,我可以亲眼看到书中所描述的公车站... 阅读全帖 |
|
|
d*********e 发帖数: 876 | 14 赞一个,我也喜欢收集trail map, 把用过的地图贴在墙上,收一份崭新的在抽屉里,
搬家了还要把墙上的小心地揭下来再贴到新地方 :-)
因为滑雪的次数还太少,大多数lift ticket还收藏着呢,上面记录着每次滑雪的日期
、地点和时间。。。没机会滑雪的时候就想着这些lift ticket流口水。。。
雪场的trail map和简略介绍,允许大家把自己喜欢的,知道的大雪场加上去,又允许
来自世界各地的滑雪爱好者加入这个club,让滑雪将大家连结在一起。
有独钟!而我见到的第一张滑雪场Trail Map就是位于风景秀美的Lake Tahoe旁的Squaw
Valley。
径,而我,就如同在迷宫中探索的蓝精灵。
,树木,雪道。。。这些奇特的组合构成了一幅美妙的图画,独具一格。
。上次去Aspen/Snowmass的时候,带回来的地图被折坏了,我小心地用透明胶带粘好。
在我沾那张trail map时,我想起了钱钟书的小说《围城》里,唐晓芙给方鸿渐的信不
小心给撕破了,方鸿渐小心翼翼地粘上。那张trail map一直保存到我第二次去Aspen/
Snowmass重新拿了张新的Trail |
|
|
w********1 发帖数: 3492 | 16 Mon, 11 Jun 2012 11:57:40 PDT
At today's WWDC keynote event, Apple announced the next version of its
operating system for the iPad, iPhone, and iPod touch. iOS 6 will feature
new functionality for Siri, Facebook integration, a revamped Maps app,
Shared Photo Streams via iCloud, and more.
iOS 6 continues the rapid pace of innovation that is helping Apple reinvent
the phone and create the iPad category, delivering the best mobile
experience available on any device,” said Scott Forstall, Apple's se... 阅读全帖 |
|
w********1 发帖数: 3492 | 17 Tue, 12 Jun 2012 07:25:51 PDT
While Apple has worked hard to build its in-house mapping expertise, the
company still needs to rely on some outside partners to assist it with the
massive project of developing its own mapping and turn-by-turn navigation
services. A number of observers noted references to "TomTom and others" in
various locations within Apple's new Maps app for iOS 6, and now the mapping
company has confirmed in a brief press release that it has indeed struck a
deal with Apple.
Tom... 阅读全帖 |
|
d***a 发帖数: 13752 | 18 今天试了一上Apple 3D Map,突然发现,其实Apple三维图很好
很强大。附上一个Apple三维图的实例,下面再附上对比的Google
卫星图。
苹果的三维图,真实感比Google的强太多了。
我觉得大家对Apple Map的期望,是做到Google Map已经做到的。
但为什么?Google Map已经不新鲜了,可替代它的产品有不少,
免费的有Waze,付费的有Garmin和Tomtom。Apple 3D Map
却是独特的,而且非常实用(对步行的人来说)。至于它还没有做
到的,给点时间都能做到。 |
|
c*******y 发帖数: 3529 | 19 我觉得你以前讨论问题不是这样的。是不是最近被某些轮给气的。
你可以会不高兴,不过我还是要指出你有些两重标准。
那些抱怨apple maps的人是有实实在在的事实的啊。比如3d扭曲,
湾区南北不分,一段路莫名就消失了,5个miles的一段路有8个错误。。。。
难道这些都是人云亦云?你说你住的地方没问题,也只是一个个案,
是否也算是芸芸众生中的一片云呢?
我说说我所知道的关于3d maps的东西:
05年或者更早的时候,bing maps (那时叫live maps)
的bird's eys就十分的惊艳了呢?
igo 08年就已经能3D导航了,欧洲的地图做的好一点,据说能够根据3D准确的在
罗马斗兽场找到趴车的地方。我用iGo已经有5年了,所以我对apple 3d
毫无感觉。
3D maps其实是个噱头,实用性不大,包括步行。我曾经在NYC用3D步行过,
没啥意思,玩一次就不想玩了。
国内的导航比美国先进很多。09年美国还没有Junction view的时候,
国内KLD等导航已经是实体照片当Junction view。至今美国的Junction View
还是渣。
真正实用还是国内的卡通... 阅读全帖 |
|
w********2 发帖数: 16371 | 20 not meant all those negatives are paid basher, some of them are.
I was curious if anyone in this board that complaining indeed got affected
by the apple map issue, so far, I see real user are kinda mixed, some of
them are quite happy with it and some are annoyed by throwing it gave wrong
direction etc.
I don't really care if austrilia map is wrong at this moment or not, I care
more about the places I go more often. From my experience, I will prefer
apple map over the old google map. (I was a go... 阅读全帖 |
|
g*********s 发帖数: 1782 | 21 【 以下文字转载自 Programming 讨论区 】
发信人: gandjmitbbs (Nothing), 信区: Programming
标 题: STL map变量的实际memory usage估算
发信站: BBS 未名空间站 (Sat Apr 26 23:08:58 2008)
比如声明这样一个变量
using namespace std;
map *nameMap = new(map);
... // 在nameMap里插入了1000个(string, int) pair
现在需要估算这时heap的size增加了多少?
估算如下:
本身sizeof(map<...,...>)是48个字节。
一个string s的size是 sizeof(string) + s.size(),假定字符串长度都是8,则是16。
一个int是4字节。
这样至少是48+1000*(4+16)=2048 bytes。
但是map是用rb_tree实现,加上开销是多少呢?看了一下source code,不太确定是不
是算对了。
每个node包含c |
|
l********a 发帖数: 1154 | 22 来自主题: Programming版 - map析构
这个实在没法写了,是另一个exe调用我这个dll,map在我的dll内定义的一个类中
class testGA
{
private:
//parameters
map params;
...
};
构造函数中,构造添加到params,用完就清除了
for (int i=0;i<(int)(node->children_.size());++i) { this->params.insert(make
_pair(node->children_[i]->name_,node->children_[i]->value_)); }
// 这里是其他代码,使用了map内容
this->params.clear(); // 清空map
析构函数中没有对map的操作
============================================
由于是exe调用dll,我再想想怎么重现问题.
看看能不能整个最小化的例子再出现这个错误 |
|
w*s 发帖数: 7227 | 23 say i want to combine several stores near me into iframe, to embed in my
webpage.
now i have the 1st place 41.698167,-70.15168,
2nd: 41.675861,-70.091255
3rd: 41.665218,-70.201462
how to combine them together in the format like
="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&
amp;hl=en&geocode=&q=shaws+near+Dennis+Port,+Dennis,+MA&sll=41.
656112,-70.134315&sspn=0.101964,0.264187&ie=UTF8&hq=shaws&
h... 阅读全帖 |
|
c******o 发帖数: 1277 | 24 从下面的code 看出。
map能对一个数据(一个List, 一个Option, 一个Future) 进行操作。
applicative (ap) 能对多个数据进行操作。
monad能对对多个数据进行操作的同时,根据数据的内容动态改变操作流程。
基本上functor (map),applicative functor (ap), monad (flatMap)的区别就是这
些。
object test {
def oneVarFunc: Int => Int = {
_ + 1
}
def twoVarFunc: (Int, Int) => Int = {
_ + _
}
def optionap[A,B](a: Option[A])(f: Option[A => B]): Option[B] =
f.flatMap(t1 => a.flatMap(t2 => Some(t1(t2))))
val x1 = Some(1)
val x2 = Some(2)
val x3 = None
//functor
def test... 阅读全帖 |
|
b******k 发帖数: 2321 | 25 我其实非常不理解现在推brain actiivty map的根基何在,在我看来这就是个从概念(
为什么觉得activity map重要?为什么不是connetivity map,不是chemical map决定
了大脑功能?),到技术(几篇review里提到的新技术idea与其说是技术,不如说是科
幻)都远不成熟的想法,为什么现在就急吼吼的上大项目去搞?
类比一下HGP,当时骂的人也不少,但是HGP之前至少用sager seq测一个物种的序列已
经很成熟了,无非是human genome大一点而已。
另外再补充一点,炒connetome也好,炒BAM也好,这些人上来就是human brain或者至
少mammalian brain。就这一点上我就觉得与其说他们想做science,还不如说他们想圈
钱。否则的话完全可以从最简单的动物做起,来个优美的proof-of-concept再说。线虫
的connetome早就有了,从中我们得到什么信息编码的algorithm了么?没有,还是得靠
wet lab一点点描述。cortex上几百个neuron级别的activity map也有不少了吧,我... 阅读全帖 |
|
c**********a 发帖数: 92 | 26 The Company:
Faraday Future (FF) is a California-based mobility company, leveraging the
latest technologies and world’s best talent to realize exciting new
possibilities in sustainable transportation. We’re producing user-centric,
technology-first vehicles to establish new paradigms in human-vehicle
interaction. We’re not just seeking to change how our cars work – we’re
seeking to change the way we drive. At FF, we’re creating something new,
something connected, and something with a global impac... 阅读全帖 |
|
f**d 发帖数: 768 | 27 【 以下文字转载自 Biology 讨论区 】
发信人: synbio79 (jingzhuo), 信区: Biology
标 题: Brain Activity Map: 一群人联合起来了
发信站: BBS 未名空间站 (Thu Mar 7 22:38:02 2013, 美东)
http://www.sciencemag.org/content/early/2013/03/06/science.1236
The Brain Activity Map
A. Paul Alivisatos1,*,
Miyoung Chun2,
George M. Church3,
Karl Deisseroth4,
John P. Donoghue5,
Ralph J. Greenspan6,
Paul L. McEuen7,
Michael L. Roukes8,
Terrence J. Sejnowski9,*,
Paul S. Weiss10,
Rafael Yuste11,*
Abstract
Researchers propose building technologies to enab... 阅读全帖 |
|
w*******y 发帖数: 60932 | 28 Link:
http://www.worldvisionsummerfest.com/free-world.html
We are giving away free printed world maps, having in mind that this action
will help to build better world, reminding every one that the earth doesn't
have any other supporter than you.
World Vision world map give away is sponsored by our partners. Simply
complete the form below and you will receive printed world map for free.
Available Worldwide. Limits: will be sent one map per household; will be
given away 15000 maps only.
|
|
w*******y 发帖数: 60932 | 29 On Nov 24 Microsoft will be releasing the Versus Booster Map Pack DLC for
Gears of War 3 for free.
This MP contains five maps, including three maps from the Horde Command Pack
that released today.
If you just want the maps (and don't care about the weapon skins or upgrade
items), don't bother buying the HCP. Just wait until later this month and
get the maps for free.
|
|
w*******y 发帖数: 60932 | 30 Vancouver Map With Subway
Offline Vancouver Map contains beautiful map of Vancouver,it collect a large
number of quality geographic information.And a new Subway Map. what's more,
User-friendly search feature will give you a convenient.And Super cool
interface design, will give you a unique experience.
Link:
http://itunes.apple.com/app/vancouver-map-with-subway/id4480438
|
|
w*******y 发帖数: 60932 | 31 Magellan RoadMate 2045T-LM Portable GPS Navigator with Lifetime Maps and
Traffic
4.3-inch touchscreen GPS navigator with lifetime traffic alerts, lifetime
map updates, OneTouch favorites, and more
Pre-loaded maps of the U.S., Canada, and Puerto Rico with six million
searchable Points of Interest, highway exit POI search
OneTouch favorites for instant access to your favorite places; AAA
TourBook for informed choices on hotels, restaurants, and more
Real-time, subscription-free traffic... 阅读全帖 |
|
|
l******9 发帖数: 579 | 33 【 以下文字转载自 Programming 讨论区 】
发信人: light009 (light009), 信区: Programming
标 题: error draw map from shape file Python 3.2 basemap
发信站: BBS 未名空间站 (Sat Feb 14 13:51:37 2015, 美东)
I am working on drawing map from shape file in Python 3.2 basemap.
But, the longitude values at the bottom axis are only shown partially. Also,
all latitude values are missing.
Here is my python code.
import shapefile as sf
import sys
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.basemap import Basemap
ma... 阅读全帖 |
|
l******9 发帖数: 579 | 34 【 以下文字转载自 Programming 讨论区 】
发信人: light009 (light009), 信区: Programming
标 题: error draw map from shape file Python 3.2 basemap
发信站: BBS 未名空间站 (Sat Feb 14 13:51:37 2015, 美东)
I am working on drawing map from shape file in Python 3.2 basemap.
But, the longitude values at the bottom axis are only shown partially. Also,
all latitude values are missing.
Here is my python code.
import shapefile as sf
import sys
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.basemap import Basemap
ma... 阅读全帖 |
|
S********S 发帖数: 486 | 35 Apple, Inc. bought mapping company Placebase in July, and observers are
speculating about Google Maps being replaced on Apple's iPhone. Once-
friendly Apple and Google could also be moving into fierce competition as
their interests collide. An analyst said Apple prefers to control its
destiny by developing its own software.
The revelation that Apple snapped up a small mapping service in July has
observers speculating about everything from Apple replacing Google Maps on
the iPhone to the once-fri |
|
n*****s 发帖数: 6495 | 36 google map的界面是越来越难用了,不过比较了一下bing map跟yahoo map貌似更不行
,除了界面更接近传统的google map
下图分别是google,bing和yahoo地图在同一地点的街景,bing和yahoo的色彩严重失真
,分辨率低,在其他地方也是如此。除了图像质量,街景的移动也远不如google。街景
车上配个好点的摄像头这么难?这两家做地图都比google晚,没理由做的更差啊,难道
都是烙印的杰作? |
|
发帖数: 1 | 37 哈哈, 苦大仇深啊!
各人有各人的偏好,导航的关键是简单可靠, 还要单手操作,
google map 有下列好处
1. 常用地址, 免打. 高效检索地址, 这是离网地图的弱点!
2. 交通状况,
3. 你的旅程记录,
4. 单手操作, Google assistant 是Google map 的有力助推器, 问下休息站, 餐馆
, 加油站, 这不就是在车里你想做的,
5. 预下载离网地图,
6. 360度场景照片! 没有其他离网导航提供!这功能超越导航功能!咱就是用它&
ldquo;瞻仰”了一下湾区的第一峰, 靠! 极度悲愤! 30万的大包裹就是为了这
光秃秃的2540尺的第一峰?
别忘了, Google map 是最大的用户群, 有反馈!咱用过各种离网导航, 基本放弃,
手机上留着,只是在无信号是用.
喜欢离网导航的, 咱推荐offline map navigation(4.7 ,here wego, 才4.3),
或navmii,前者快, 后精细,
特别提一下, 后者有国际版, 咱在冰岛就靠它活着, 冰岛的城市交通是灾难! |
|
l****z 发帖数: 29846 | 38 Report: Journal News Map-listed Guns and Permits Stolen From Rockland County
Home
by Jammie
Well, that didn’t take long. Great job, Journal News. This is now
reportedly the second home burglarized that just happened to appear on the
gun permit holder list in December.
Two handguns and two pistol permits were stolen from the New City home
of a man whose name and address are listed on the website of a local
newspaper as possessing gun permits, police said.
The thieves ransacked the house ... 阅读全帖 |
|
A**u 发帖数: 2458 | 39 别人的面经
一个嵌套Map, 就是一个HashMap, 它的value可以是一个element也可以是另外一个
嵌套map或是空的map. 实现一个iterator来遍历这个map里面的所有element。 就是类
似树遍历一样的方法 |
|