l*******n 发帖数: 6 | 1 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: ludongbin (woguan), 信区: Programming
标 题: Re: date conversion
发信站: The unknown SPACE (Wed Apr 17 11:45:51 2002) WWW-POST
big shrimps,please help~~ |
|
m**a 发帖数: 296 | 2 Hey, all skillful GGDDJJMM:
I am having a trouble enabling an audio conversation with my friend, who is
working for a law firm in Shanghai, through MSN messenger. I have never had
any problems talking with my other friends who have DSL or cable at home. Is
that because the firewall? Every time, the messenger returned an error message
saying "can't connect to xxx's computer". What could cause that problem? And
how can I help her solve that problem? Thanks in advance! |
|
t*******t 发帖数: 105 | 3 Dataset ds = (Dataset) new GctParser().parse();
Gctparser.parse()返回的是一个List,而Dataset是一个interface,这种转换的细节是
在什么地方写出来的啊?
多谢!google了type conversion,结果是讲 int -》double。 |
|
g***e 发帖数: 577 | 4 Consider two possible interpreations of the following case
class x{
...
x(int);
friend x operator+ (x,x){...}
operator int(){...}
};
now in code
x y,z; ...some assignment afterwards...
y=z+2;
question: two possible conversions: z to int, then +2 ,then to x.
another way:2 to x then + z.
is this case allowable in C++ syntax? |
|
X****r 发帖数: 3557 | 5 In case of a function template, template argument deduction is performed
before the compiler tries to resolve the overloading [13.3.1 paragraph 7].
In other words, the compiler sees "a*b", then it looks for all overloaded "
operator*". You have "template operator *(const A&, const A&)
;" defined up there, so it tries to deduct the typename T. Note that the
compiler doesn't look into anything else in this step, including your user-
defined conversion function. Obviously it cannot f |
|
h**o 发帖数: 347 | 6 谢谢,我明白这层意思了
之所以我想用implicit conversion,就是因为class A已经有很多运算了
一个一个再重写既麻烦,我又不知道是不是多余。。。
&)
so
all |
|
l*****d 发帖数: 359 | 7 for example, define a class of complex numbers (use int for simplicity).
class complex_int{
public:
complex_int(int); // constructor 1
complex_int(int, int); // constructor 2
friend complex_int operator+(complex_int&,complex_int&); // friend operator+
operator int(){return real;} // ****conversion to int*****
void print_out(){cout << real << '+' << imag << "i\n";} // display the
complex number
private:
int real;
int imag;
};
if I define two complex_int a and b,
and do "b=a+2".
This is an ambiguo |
|
y***a 发帖数: 840 | 8 class WIDE {
...
template operator A () {
A a;
... A::static_member <---- line 20
}
}
template class NARROW{
static int const static_member;
...
}
WIDE wide;
NARROW<1,2> n12 = (NARROW<1,2>)(wide) <---- line 123
error message:
y.c: In member function ‘WIDE::operator A() [with A = int]’:
y.c:123: instantiated from here
y.c:20: error: ‘static_member’ is not a member of ‘int’
I tried to overload a type conversion operator which conve |
|
y***a 发帖数: 840 | 9 I tried to add a constructor in the template class NARROW: NARROW(WIDE&w) {
...}
then it works. I don't understand this, seems C++ tries to use the construct
or NARROW(WIDE& w), instaed of the type conversion operator in WIDE. Weird.
Any thoughts? |
|
t****t 发帖数: 6806 | 10 no you don't have to define narrow(wide&) (by the way, that's not the correc
t way of user-defined conversion functions. narrow(const wide&) is the corre
ct one), if you provided wide::operator narrow() (again, better use wide::op
erator narrow() const).you have some other errors in the program.
{
construct
. |
|
f**********w 发帖数: 93 | 11 偶尔看到的,这里为什么要对path做void conversion?
static int nullfs_unlink(const char *path) {
(void) path;
return 0;
}; |
|
s******s 发帖数: 505 | 12 The C code blow can be used to read a floating point number
representation. However, line 8 will not work with g++
(invalid conversion from ‘void*’ to ‘float*’ [-fpermissive]).
What is the proper way to do this in C++?
Thank you.
========
1 #include
2
3 int main() {
4 float *numfp;
5 int numi;
6
7 numi = 1082130432;
8 numfp = (void *)&numi;
9 printf("%f\n", *numfp);
10 return 0;
11
12 } |
|
t****t 发帖数: 6806 | 13 my point is to show what is improper code: you are not to alias and access
an object with imcompatible type through pointer conversion. for int and
float, maybe it is obvious that you shouldn't do it. but for some other
types, it may not be that obvious: for example, you can't change a void*
through pointer/reference to void**, even if you do casting (e.g. when
x is void*, you can't do (*(void***)(&x)) = ...., even with casting). i
personally fell through that trap several years ago, when i buil... 阅读全帖 |
|
C***y 发帖数: 2546 | 14 【 以下文字转载自 JobHunting 讨论区 】
发信人: Chevy (Chevy), 信区: JobHunting
标 题: Question about type conversion
发信站: BBS 未名空间站 (Fri Apr 6 14:39:16 2012, 美东)
Got error C2664: 'foo' : cannot convert parameter 1 from 'B *' to 'A *&'
How can I handle it? Thanks!
class A
{
};
class B: public A
{
};
void foo( A*& a )
{
}
void bar( B*& b )
{
foo(b);
}
int main()
{
B* b = NULL;
bar( b);
return 0;
} |
|
X****r 发帖数: 3557 | 15 Say you have
void foo( A*& a )
{
a = new A;
}
If B*& to A*& conversion is allowed, the code would effective
assign
B* b = new A;
Now you see the problem? |
|
N******n 发帖数: 1109 | 16 I used ps2pdf from miktex. The same result using Acrobat distiller.
The paper looks perfect in PS. After the conversion to PDF, somehow the
content on each page is shifted upward. In the last page, the page number is
shifted to the upper board. What could be wrong?
Thank you. |
|
a****d 发帖数: 1919 | 17 最新一期的Nature paper,reprogramming from fibroblasts to functional neurons
. 一样的套路,不过还是感觉很crazy!
Direct conversion of fibroblasts to functional neurons by defined factors
Thomas Vierbuchen1,2, Austin Ostermeier1,2, Zhiping P. Pang3, Yuko Kokubu1,
Thomas C. Südhof3,4 & Marius Wernig1,2
Abstract
Cellular differentiation and lineage commitment are considered to be robust
and irreversible processes during development. Recent work has shown that
mouse and human fibroblasts can be reprogrammed to a plurip |
|
t****t 发帖数: 610 | 18 I'm using ZymoResearch EZ DNA kit to convert genomic DNA. Unmethylated and
methylated DNA controls from Milipore were converted together with my
samples.
I use qPCR based method to check methylation. Basically, if it's methylated,
the Tm will be higher that unmethylated DNA due to less C->T conversion.
My experiments were fine until recently. I always found all my samples,
control DNA (methy+unmethy) had the same Tm, which is even lower than (~2
degrees) supposed unmethylated DNA Tm. It looked t... 阅读全帖 |
|
w*****a 发帖数: 156 | 19 A postdoc position is available in the department of Mechanical
Engineering at University of Wisconsin, Milwaukee in Dr. Yuan's lab. The
candidate is preferred with strong credentials in the following:
1. Academic background in Chemical Engineering, Chemistry or related field
2. Theoretical and experimental skills in plastic material conversion and
processing (for example, breaking the C-H bond and rearranging the C-H
structure).
3. Knowledgeable of supercritical fluid processing of polymer c |
|
l********x 发帖数: 27 | 20 真诚求审稿机会~energy conversion/energy storage方向都可以。目前发表10+文章
,已独立审稿10篇,博士刚毕业。之前也帮导师审过Nature子刊,Jacs这些高档次的。
求各位前辈转一些审稿给我,站内信,我再发简历看是否合格,万分感谢啊! 交个朋
友,以后有什么创业想法和机会还可以一起交流! |
|
l********x 发帖数: 27 | 21 真诚求审稿机会~energy conversion/energy storage方向都可以。目前发表10+文章
,已独立审稿10篇,,博士刚毕业,之前也帮导师审过Nature子刊,Jacs这些高档次的
。求各位前辈转一些审稿给我,站内信,我再发简历看是否合格,万分感谢啊! 交个
朋友,以后有什么创业想法和机会还可以一起交流! |
|
g*****9 发帖数: 4125 | 22 If I do not have free NG, I will do one too (actually I have been thinking
about this for a while). But those barely used civic gx are so darn cheap,
it just does not make any sense for me to do one right now. But if you guys
can find ways to do this cheap, I have a few older cars that can use this
conversion. |
|
p**f 发帖数: 2610 | 23 why do you have free NG?
One of the reasons that I like the EV conversion idea is that there are
many choices for the style. Good for the kids.
thinking
cheap,
guys
this |
|
|
w*******y 发帖数: 60932 | 25 EveryDaySource
Camera Phone Conversion Lens, Wide Angle
$7.99 - $7.50 code S8LNWA
= $0.49 with free shipping
|
|
w*******y 发帖数: 60932 | 26 Sears has several pairs of Converse marked down to 19.99 and you get 20% off
and free shipping using code SEPTSHOES20 ( magens_bay) which marks the
shoes down to $15.99+tax shipped!
I was a little hesitant to post this deal because last time I tried to order
these same Chuck's (brown in size 11) from Sears, they cancelled my order
due too not having enough in stock. I ordered these last night and already
received shipping confirmation so it looks like they have enough in stock
for now.
They curr |
|
w*******y 发帖数: 60932 | 27 EveryDaySour ce
Camera Phone Conversion Lens
$7.99 - $7.50 code S9CPLS
= $0.49 with free shipping
|
|
w*******y 发帖数: 60932 | 28 Link:
http://www.car-parts-accessory.com/Automotive Bulbs/HID Bulbs/Digital Slim HID Conversion Kit /4393/
Use code: blackfriday2010
Color Output : 3000K Yellow 4300K White 6000K Cool White 8000K 10000K 12000K
Blue 30000K Purple
|
|
|
|
w*******y 发帖数: 60932 | 31 Extra 50% Off All Clearance Shoes @ Tillys.com:
http://www.tillys.com/tillys/sale.aspx?ctlg=010_Guys&cid=1023&s
.
Use Promo Code: SALE50
CONVERSE Chuck Taylor All Star Low Clearance Price $34.97 Now $17.49
PUMA Suede Mens Shoes Clearance Price $49.97 Now $24.99
UGG Vanowen Mens Shoes Clearance Price $79.97 Now $39.99
VANS KVD Womens Shoes Clearance Price $29.97 Now $14.99
MADDEN GIRL Zylow Womens Boots Clearance Price $54.97 Now $27.49
UGG Kenly Womens Boots Clearance Price $119.97 Now $59... 阅读全帖 |
|
|
w*******y 发帖数: 60932 | 33 Did a quick search but did not a find a post of this so I thought I would
share.
I got this in the email not long ago and Hot Topic has select styles of
Converse & Vans on sale for 19.99 + 4.95 S/H
Link:
http://www.hottopic.com/hottopic/Shoes/1999SelectConverseandVan
Coupons of interest:
20% off $50 - HTA20OFFCC
|
|
w*******y 发帖数: 60932 | 34 Kohl's has the Converse Chuck Taylor All Star Double-Tongue Shoes - Kids'
for $14.00
original $35.00
Use code POLYKIDS for 15% off
plus $0.99 shipping per item
|
|
|
|
w*******y 发帖数: 60932 | 37 6PM.com has Converse Chuck Taylor Slim Hi-tops in Jet Black for only $14.99
with free shipping.
Get these fast because 6pm clearance items often sell out quickly.
Link:
http://www.6pm.com/product/7928107/color/42005
|
|
w*******y 发帖数: 60932 | 38 Link:
https://www.primaryarms.com/CMMG_22LR_DROP_IN_CONVERSION_126RD_MAG_STAIN_p/
cmmg22lrconvsst.htm
Stainless steel version. Perfect for those that love shooting their AR-15,
but don't feel like spending a fortune on ammunition, the CMMG AR-15
Conversion Kit is absolutely amazing. No sales to: NY, MA, CA, MD or NJ.
Limit 2. Sale ends Midnight PST 3/18/12 or while supplies last
|
|
a****o 发帖数: 1786 | 39 CAREERS IN INDUSTRY: CONVERSATION WITH MARY LYNNE HEDLEY, PH.D.
Thursday, December 3
12:00pm-1:30pm
Light lunch served
RSVP required: p*****[email protected]
Learn about Mary Lynne Hedley's transition from academia to the private
sector, as well as her entrepreneurial and managerial work in the biotech
industry.
Dr. Hedley, Executive Vice President and Chief Scientific Officer of Abraxis
BioScience, most recently served as Executive Vice President of Eisai
Corporation |
|
|
k******u 发帖数: 3137 | 41 【 以下文字转载自 NCAA 讨论区 】
发信人: kellyliu (9614020), 信区: NCAA
标 题: 8一下2point conversion
发信站: BBS 未名空间站 (Fri Nov 3 17:01:17 2006)
博采输了钱,码点字补贴一下.
由于我是Irish饭,别的队了解不多,没法全部列出,大家看看好玩就行了.
1986年, ND at USC, USC一路领先,长话短说,USC第四节37-20领先, ND随后扳成37-27.
USC之后在ND的5yd上玩4th n inches,失败. ND拿到球,Tim Brown一个big reception
过了中场,ND最终踢地成功,然后第一年的Lou Holtz大手一挥,"给我全取2分!",37-35.
USC度日如年的等到了punt,却踢错了方向,Tim Brown return了56 yard, 最后剩两秒
时由John Carney(yes, the same Carney who's still playing for Saints!!!)飞狗
成功,final 38:37.
(ref: E |
|
d**********o 发帖数: 1321 | 42 最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖 |
|
d**********o 发帖数: 1321 | 43 最终版本的compiler测试结果
=================================================
Output of Building User Code
Explode the tar
c-.l
c-.y
scanType.h
makefile
symtab.h
symtab.cpp
emitCode.h
emitCode.cpp
20131214164956-huang-CS445-F13-A5.tar: POSIX tar archive (GNU)
Tests: directory
c-.l: lex description text
c-.y: lex description text
emitCode.cpp: ASCII C++ program text
emitCode.h: ... 阅读全帖 |
|
|
s******r 发帖数: 5309 | 45 扫了两眼傅苹的twits。只能用脑残来归纳。
Ping Fu
@pfugeomagic
Ping Fu is the founder and CEO of Geomagic, a 3D digital reality solution
company. She is a member of President Obama's National Council on Innovation
and Entre
RTP, NC · http://www.bendnotbreak.com/
972
TWEETS
442
FOLLOWING
1,154
FOLLOWERS
Follow
Tweets
2 new Tweets
11 hrs Ping Fu @pfugeomagic
yes to managing time, we also needed to managing life. http://newsle.com/article/0/61228516/ …
Expand
11 hrs Ping Fu @pfugeomagic
Love Nancy Conra... 阅读全帖 |
|
t******n 发帖数: 2939 | 46 ☆─────────────────────────────────────☆
fantasticrj (converse帆布鞋控。。) 于 (Sat Feb 4 16:08:57 2012, 美东) 提到:
http://bugu.cntv.cn/news/C33932/classpage/video/20120204/100605
韩寒一如既往的淡定,逻辑思维清晰,眼里飘满了鄙视浮云的光芒。。
而方舟子呢?张牙舞爪,鸡眼忽大忽小,别人说什么都要从里边挑刺,我真的不相信这
种专门挑别人刺儿的那个满面智障的面孔在那里叫嚣污蔑强词夺理嘴硬能有什么好结果。
看了这个专访,我只得出一个结论:原来方舟子长的是一幅智障的面孔。
☆─────────────────────────────────────☆
firingdragon (火云邪神的心,也有春天) 于 (Sat Feb 4 16:10:02 2012, 美东) 提到:
他倒不是智障,就是下流胚子
果。
☆─────────────────────────────────────☆
fantasticrj... 阅读全帖 |
|
f**d 发帖数: 768 | 47 这是一本计算神经科学的优秀著作,全文拷贝这里(图和公式缺),有兴趣的同学可以
阅读
如需要,我可以分享PDF文件(--仅供个人学习,无商业用途)
From Computer to Brain
William W. Lytton
From Computer to Brain
Foundations of Computational Neuroscience
Springer
William W. Lytton, M.D.
Associate Professor, State University of New York, Downstato, Brooklyn, NY
Visiting Associate Professor, University of Wisconsin, Madison
Visiting Associate Professor, Polytechnic University, Brooklyn, NY
Staff Neurologist., Kings County Hospital, Brooklyn, NY
In From Computer to Brain: ... 阅读全帖 |
|