b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
kindom (天道酬勤) 于 (Fri Sep 23 15:20:58 2005) 提到:
Sorry I could not input Chinese here.
For example, I have a list defined as:
////////////////////////////////////////
typedef std::list IntList;
struct SOMESTRUCT {
IntList * ants;
int num;
};
typedef std::list SomeList;
////////////////////////////////////////
I defined a list of type SomeList in the code:
SomeList * platoon = new SomeList();
Then I put some elements of type SOMESTRU |
|
g****r 发帖数: 35 | 2 假定
C
是预定义的 template class
用 list 保存一组 C 指针
std::list*> myList;
如何设计一个 template 函数,在其中采用 iterator 访问 myList 的成员?
template
void f(T& t)
{
std::list*> pos = myList.begin();
std::list*>::iterator pos; // This line give me
error
while (pos != myList.end())
{
(*pos).... blah blah
++pos;
}
}
编译器对 iterator 的定义行报错,如下:
error: parse error before `;' token
替换为
std::_List_iterator*> pos;
在 iMac 上 |
|
G***l 发帖数: 355 | 3 我不知道有没有办法可以按你那样做,但是就算有一种方法可以让你跳到后面读,你这
种做法也不是正经的做法。serialize是把整个object作为一个整体存起来,你去中间
读不管能不能work,都破坏了这个integrity。而且c#的api肯定也不保证某些你想象的
顺序或者部分读取一定成功。你这种使用api但是又绕过正确使用方法试图去hack感觉
像是在写c++程序,而且是用很难维护的方式去写。
之前都是废话,说点解决方案。最简单的,如果性能没有明显影响的话,就把整个list
读进来。既然你把一个list序列化了,那我想在你application的life cycle里一般不
会只用其中一个位置的element,这样在需要别的位置的element的时候也不用再去读盘
了,说不定总的性能还更好了。如果你实在需要读第n个element,那就不要用list的序
列化,自己把一个list里的element按顺序写。如果你能确定每个element大小一样的话
,读的时候自然可以跳到想要的位置去读单个element。
reading |
|
d******i 发帖数: 7160 | 4 list l1,l2;
list::iterator li=l1.begin(); // could be l2.begin()
if(li==l1.end())
...
else
li++;
这里l1.end()!=l2.end(),
所以不像指针一样有个通用的NULL那么灵活。
C++11有改进吗?有没有只与类型list相关的函数来判空,而不必知道具体的对象
l1,l2?
谢谢! |
|
d******i 发帖数: 7160 | 5 不好意思如果没说清楚。
In detail,我不想依赖知道具体的list li对象判断结尾,
因为算法要求把同一个list::iterator it
不断赋值去指向不同的list对象。
所以单从it的角度,虽然可以it++去walk through(这时不依赖li),
却无法自行判尾:
it==li.end()要求知道li,不可取,
it-li.begin()==li.size()也是一样。
以前用指针没这种依赖,==NULL判尾就是了,所以灵活很多。
我的问题就是
用了stl咋就没这方便了呢,或者说workaround在哪里? |
|
d******i 发帖数: 7160 | 6 NODE *head1, *head2, *p=head1;
if(!p) cout<<"list 1 ends";
p=head2;
if(!p) cout<<"list 2 ends";
在这里,p不需要清楚自己在指向1还是2.但NULL足够判断either list的尾了。
所以你说的1不成立。 |
|
Z***e 发帖数: 2983 | 7 在毕业论文的table of content里面
显示list of figures的时候只有figure的番号,但是没有
"Figure"在前面
研究生院说要和正文的一直,在List of figures要显示成
Figure. II.1 caption....
而我现在的模板只能生成
II.1 caption...
因为是自动生成的,也不知道怎么改。大概知道相关的东西在.cls file里面,
% LIST OF FIGURES
%
% Single-space list of figures, add it to the table of contents.
\def\listoffigures{\@restonecolfalse
\if@twocolumn\@restonecoltrue\onecolumn\fi
% \chapter*{\listfigurename\@mkboth{\uppercase{\listfigurename}}%
% {\uppercase{\listfigurename}}}
% WBB
\newpage
\centerline{\ |
|
o*****y 发帖数: 699 | 8 编译老是通不过。给出的信息是“required file tex\latex\listings\listings.sty
is missing”从网络上搜索到listings.sty放到tex\latex\listings目录下,编译还是
得到同样的出错信息。怎么办?谢谢。 |
|
l********r 发帖数: 175 | 9 I need to list 3 authors in a paper as following:
A, belong to organization1+organization2
B, belong to organization 1
C, belong to organization 2
how to list the author and affiliation as following
A^(1+2)
B, organization 1^1
C, organization 2^2
without listing the organization of 1 + 2 for A initially, but list 1 for B
and 2 for C separately later?
Thanks a lot. |
|
h*******e 发帖数: 404 | 10 latex可以构建list of figures,list of tables。
我现在尝试用latex记日记,分activities, thoughts, diaries; 请问如何构建list
of thougts, list of diaries, ... |
|
o********y 发帖数: 1138 | 11
I have put together a short list of people I got in touch with and sent to
those on the list. If you guys know the contact info of any other people
you met at the seminar ( and have their consentthat they want to be on the
list too), please add it to the list and send back to me, and I will update
it upon any new info. Thank you very much and good luck on your study! |
|
w****h 发帖数: 212 | 12 【 以下文字转载自 TeX 讨论区 】
发信人: wmbyhh (wmbyhh), 信区: TeX
标 题: latex里如何给List添加横线?
发信站: BBS 未名空间站 (Thu Jan 31 15:19:33 2008)
latex里如何添加横线?
加上一个list,需要在list上面加2道横线,横线中间有一行说明,并且对这个list下面
添加Fig. x的标记,请问如何实现?
多谢 |
|
|
p*******a 发帖数: 16 | 14 I am going to buy residency program list in residency match website, who
wants to join me, let me know,split the fee. melissa_cxx skype
whole list about: 300$
my credential: Step 1 >90
step 2 >90
cs pass first time
step3 doesn't matter in buying a list( if I am wrong, correct
me)
graduate >10 years
visa needed?: yes, J1 or H1 if passed step 3
I am very serious, please. Only with same credentials can get the same list.
We |
|
p*******a 发帖数: 16 | 15 I think the program list is based on the program criteria of 2010.
Yes, If I have time. I can study the program criteria( most of the programs
now already posted their criteria in the website) one by one and make my own
list. But, it's a time consuming work. I need a lot of time to do that.
My resident friend said 90% of the list if correct. So that's the reason I
want to buy instead of making my own.
What is the pros and cons of buying or making own list?
Please give us( CMG applicants of 2010 |
|
a***n 发帖数: 428 | 16 【 以下文字转载自 Pre_Resident_Club 俱乐部 】
发信人: aemon (麦地小核桃), 信区: Pre_Resident_Club
标 题: 再发一个技术贴: 找recommended reading list的方法
发信站: BBS 未名空间站 (Mon Jul 11 09:58:54 2011, 美东)
1. Amazon的Listmania!: Listmania可以使你在amazon搜到很多user created book
list,其中有不少不同专科residency的推荐书目,以及medical narrative book list
。比较2、3个同一类的list,就能知道哪些是必看书了
2. 另一个比较好的book recommendation source是每周JAMA的book/media review
3. 从library.nu下载到的ebook,大致是一半PDF格式,一般CHM格式;大部分都有
bookmark。iPad上读CHM的App比较推荐CHMate(not free) |
|
d****y 发帖数: 2180 | 17 ☆─────────────────────────────────────☆
xingqiba (ii++) 于 (Fri Sep 21 11:58:03 2012, 美东) 提到:
2013年的第一个IV,比以往时候来的更早一些。众人兴奋的同时好奇心又一时得不到满
足,于是版上微波荡漾。呵呵,大家稍安勿躁。我坚信,随着更多IV的到来,麦地一定
会恢复积极向上、携手互助的主旋律。我也坚信,2013班的同学们,一定会给2014班的
同学留下宝贵的参考信息。祝大家好运!
以下list我会尽量及时更新。愿意分享IV但又暂时不愿意公开透露ID的朋友,不介意的
话请站内信件。谢谢。
IV
9/18 program not disclosed, yet
9/18 Harbor Hospital Center Program, MD
9/19 Harbor Hospital Center Program, MD(##)
9/20 UPMC Medical Education Program, PA
9/21 University of Nebraska Medical Center Co... 阅读全帖 |
|
|
c*******1 发帖数: 240 | 19 y = x
is called aliasing. x and y refer to the same list in memory.
you can type t
id(x)
id(y)
to see it.
x.remove
is a method of list, it modifies the list x points to
x = [1,2]
creates a new list and changes the address x is referring to
it is no different from
x = 'asdf'
or
x = 1.201
equal sign is an operation on the name x, not the object x points to.
just remember python has no variable. every so-called variable is a pointer |
|
a*********7 发帖数: 30080 | 20 把ocef加入所在公司的official charity list,好处是显而易见的:这样ocef就可以
享受公司的配捐制度; 你捐给ocef多少钱,公司 也会捐给ocef同样多甚至是双倍的钱
(配捐比例各公司不尽相同)。
rainnight是ocef的资深义工,2003年的时候他在 Wisconsin Milwaukee就已经成为了
ocef的义工,独自一人在当地组织过几次推广ocef和为ocef募捐的活动。当时在GE工作
的他还通过自己的努力把ocef加入到了GE的official charity list上。
他简单介绍了一下自己当时申请的过程,经过他的同意,贴出来跟大家分享。如果谁所
在公司的official charity list还不包括ocef,而你又想尝试一下,不妨用作参考。
多谢雨夜!
寄信人: rainnight (雨夜)
标 题: Re:ocef伪币义卖筹款
发信站: 未名空间 (Mon Nov 19 11:40:27 2012)
来 源: 155.
I already moved to Boston.
Well, GE required:
1) 10+ pe... 阅读全帖 |
|
w***t 发帖数: 8175 | 21 BEIJING (AP) -- Chinese millionaire Su builds skyscrapers in Beijing and is
one of the people powering China's economy on its path to becoming the world
's biggest.
He sits at the top of a country -- economy booming, influence spreading,
military swelling -- widely expected to dominate the 21st century.
Yet the property developer shares something surprising with many newly rich
in China: he's looking forward to the day he can leave.
Su's reasons: He wants to protect his assets, he has to watch w... 阅读全帖 |
|
q*a 发帖数: 2330 | 22 LOL
Report: China listed possible US troublemakers
42 minutes ago
MCLEAN, Va. (AP)—The Chinese government, concerned about the possibility of
demonstrations during the Beijing Olympics, created a list of nine U.S.
athletes and one assistant coach it thought might cause problems, USA Today
reported Thursday.
The newspaper obtained an internal U.S. Olympic Committee e-mail in which a
Chinese official expressed concern that members of the U.S. team might stage
some sort of demonstration. The list w |
|
l****z 发帖数: 29846 | 23 Army Training Manual Lists Catholics, Evangelicals and Jews as ‘Religious
Extremists’
by Jammie
Naturally, the odious hate group the Southern Poverty Law Center has a hand
in this.
A slideshow presentation shown to US Army Reserve recruits classifies
Christians, including both evangelicals and Roman Catholics, as religious
extremists, placing them in the same category as skinheads, the Ku Klux Klan
, Hamas and Al Qaeda.
The presentation also warned that members of the military are prohib... 阅读全帖 |
|
k*********l 发帖数: 1218 | 24 你把控枪法案贴出来看看,watch list上的人我认为光FBI一个机构不能算,到时候和
中国打仗了,FBI把中国人放watch list上,连自己家里都没有办法保护
我觉的watch list上必须有个rule是怎么放上去的,都要有明确规定,然后audit |
|
j****3 发帖数: 2836 | 25 我已经说过了, no fly list上是几万人,watch list上是100万,这都是有据可查的。
这个watch list上去了基本就下不来,所以就相当于剥夺了这个人的合法权利,实质上
就是禁了这个人的枪。这点你再怎么粉饰也是没用的。 |
|
c*******o 发帖数: 8869 | 26 watch list上只有小部分公民。大部分是外国人比如来自中东地区恐怖活动活跃的,监
控这些人有什么错?
Omar mateen和boston bomber都上了watch list然后又都下来了,这就打了你这个“
watch list上去了基本就下不来”的脸。 |
|
w****r 发帖数: 1384 | 27 【 以下文字转载自 Texas 讨论区 】
发信人: willer (willer), 信区: Texas
标 题: 在线驾校--哪里可以查到TEA approved的在线学校list?
发信站: BBS 未名空间站 (Thu Sep 13 13:43:12 2012, 美东)
在线驾校--哪里可以查到Texas Education Agency (TEA) approved的在线学校list?
好多学校都自己标称TEA approved,但是我怎么知道是不是真的approved了呢?
TEA官方网站没找到这个list(也可能是我不知道怎么找吧) |
|
k****r 发帖数: 5335 | 28 以前有listing信息,现在在某个listing里看半天也没找到啊,搜索某个人的list也看
不出来有没有加feature,我已经非常落伍了a |
|
i*******8 发帖数: 313 | 29 整个promotion的message,那么大的字就没有提到只适用于前100个,光说不管价格多
少之类的Listing都免费,结果昨天一看余额,被charge了好多Listing fee。一气之下
找了ebay,还好,最后他们credit了我所有的listing fee...以后真得看仔细了阿。原
来是在点了他们连接以后开始卖的时候下面有好多字,其中就有最多100,还是在附注
里面。。。。带着眼镜才能找到呢。 |
|
C****g 发帖数: 3945 | 30 Dear Dandan,
Calendar eBay has announced a new policy that will restrict sellers from
posting duplicate fixed-price listings.
Effective Oct. 26, only one fixed-price listing will be allowed per item,
per seller—even if you sell under multiple IDs.
The new policy does not apply to auction listings. |
|
d***y 发帖数: 1850 | 31 每个月auction不管starting price是什么,100 个listing insertion fee free的那
个offer没有了么?
明明还可以看到这个月还有listing剩下,可以list 东西的时候却要首insertion fee
。。。
还有人有这个问题么?咋回事?
谢谢 |
|
d***y 发帖数: 1850 | 32 有很多原因
那个free listing 是auction style,你要用fixed price,还是有fee
或者你的DSR不是每项都高于4。5,不qualify那个free listing |
|
g*********g 发帖数: 1139 | 33 今天发现列的所有listing被ebay删除,ebay说有人举报,连这个月卖出去的商品记录
都被删了
重新列货的话也查不到新的listing了,是不是新的listing被ebay屏蔽了?
有一点比较好的是,本来今天要交的$500 ebay费居然也没有了,不用交了
现在这个账户是不是就废了啊? 列货别人都搜不到 |
|
|
a*****n 发帖数: 14370 | 35 3-day Seller Special: April 26-28
Who's eligible?
Sellers who list Fixed Price on April 26-28, 2012 will pay no Insertion Fees
per item listed ("Promotion") for up to 5,000 listings in the Fixed Price
format. |
|
l*******r 发帖数: 4028 | 36 Call Amazon and tell them your issue. Amazon will not let the listing
creator change the listing any more. In the meantime, Amazon CSR can change
the listing back to its original looking. |
|
y****r 发帖数: 680 | 37 手上有一双全新的名牌鞋。时间过期了,也没办法退。刚才刚刚把它list到ebay上了。
请问,光list在ebay上,要交钱么?(ebay会自动从我的paypal连接的银行卡上扣什么
fee么)?
还是说,鞋卖掉了,才要给ebay交fee? 卖不掉就不用交任何fee,可以一直免费list?
如果交,是%多少?
第一次在ebay上卖,(估计也是最后一次)。希望没踩到恶霸的什么雷,听说恶霸很黑
水很深。。。
谢谢! |
|
f******s 发帖数: 436 | 38 在ebay 上卖几个东西。第一次卖,所以有些问题不明白。
1)比如我想卖两个同样的东西,需要list 两次吗?
假如,一个sold了,我还需再list 另一个吗? 还是只要我不撤下list, 它就一直有效?
2)刚刚设立ebay account时,ebay 提示输入了paypal to pay sell fee. 是不是
buyer付款也付到我的这个paypal 帐号呢? 我不需要另外提供帐号了吧?
3)怎么买label便宜,折扣大?
新手,神医多指教,莫笑话。
谢谢。 |
|
d*******o 发帖数: 5897 | 39 怎么现在ebay上搜索没有"Sold Listing“和"Completed List"的选项了?那怎么看一
样东西历史价格? |
|
c******y 发帖数: 3269 | 40 不一定是创建list的人改的,我的list被其他卖家恶意改过。
任何人都可以提交修改建议,amazon如果没仔细查,list就会被改成错误的信息。今天
又碰上这个情况了。 |
|
f*********0 发帖数: 861 | 41 我看别人可以在同一个list上搞个下拉框, 有不同的颜色,不同的尺寸/不同的价格等信
息, 这是怎么搞的, 我怎么list不上这些. 是因为,我是个人账户,只能一个一个的list
吗? |
|
K*C 发帖数: 2825 | 42 Thank you for contacting Amazon Seller Support.
I have gone through your email and understood that you are unable to list
the item in NEW condition, 'Apple Magic Mouse'. Please accept my sincere
apologies if this has caused you any inconvenience and frustration and I'm
sorry for this situation.
Upon reviewing our records I'm able to verify that the mentioned products
falls under list of our top-selling items in this store at this time.
Unfortunately, you will not be able to create an Amazon Mark... 阅读全帖 |
|
g*******e 发帖数: 237 | 43 我用advance search一个top sell 15天的销售情况,用了Completed listings
Enter seller's user ID
Show completed listings only
出来的信息这个seller 15天只买出去100多一点点,但是我看到这个seller每个月的
feedback基本都保持400多.
请问我在操作Completed listings哪里出错误了吗?谢谢! |
|
d*****e 发帖数: 3868 | 44 到底什么人有权限该呢?我有自己弄的list也不能随便改!
有个list,list主人卖完了,就改成了一个cheaper version,然后调低价格后一直占
据buy box。因为就我们2个人在卖,被我发现了,联系amz改回去了,主人又改,我又
联系amz,反复几次,amz估计弄烦了,就把他弄成不能赢buy box。现在我卖80,他70
,但我一直占buy box . |
|
c****r 发帖数: 3057 | 45 你自己低配的版本卖完了,别人没卖完呢,你把低配的listing直接篡改成高配的版本
,导致别的卖家卖出的货不对版,整个listing都是负评,你自己的高配的也卖不动了
吧?
另外建一个高配的listing不就完了吗, 干嘛 他妈的干这种 损人不利己的勾当。 |
|
D*******0 发帖数: 4476 | 46 The regular listing for HP 7520 Printer is ASIN B008DWCFVY. Now if you
search HP 7520 or B008DWCFVY, youcannot find the listing any more. The
listing was removed from search although it still exist as
http://www.amazon.com/gp/product/B008DWCFVY |
|
r******f 发帖数: 987 | 47 买了几个玩具,想上亚麻卖个试试。第一次搞,研究大家说的,发现fba容易走货,打
算用fba了。可是一般是先listing建好,还是先把货寄到亚麻,再弄listing呢?
先弄listing,会不会弄好了,但是仓库还没货? |
|
c******y 发帖数: 266 | 48 进了long list 怎样才能进 short list 呢?
是看推荐人的背景吗?
大概能有多少人进long list 呢? |
|
s********e 发帖数: 136 | 49 请问怎么知道自己进了SHORT LIST 呢?我现在知道有几个学校在要我的推荐信,这大
概是LONG LIST 吧?什么专业这么早就有SHORT LIST出来? |
|
y*********n 发帖数: 52 | 50 I got an email recently saying Earth Emphasis wants to list my recent paper.
Is this real or spam?
See the email below. Thanks
"Dear Dr. XX
I am pleased to inform you that the Earth Emphasis team has identified your
recent publication, xxxxxxxxxx as being of special interest to the progress
in the Earth Sciences field. We would like to list your publication on our
next edition of the Earth Emphasis series.
Earth Emphasis alerts the scientific community to breaking journal articles
considered to... 阅读全帖 |
|