由买买提看人间百态

topics

全部话题 - 话题: reture
首页 上页 1 2 3 4 5 (共5页)
f********a
发帖数: 1109
1
来自主题: Programming版 - 问一个简单的C++问题
有一段代码vector.h和vector.cc
[CODE]//vector.h
int add(int x, int y);
//vector.cc
#include
int add(int x, int y){
return (x+y);
}
int main(){
std::cout< return 0;
}
[/CODE]
显然我不需要include "vector.h"就可以编译成功。因为编译器自动会找vector.h
但是当我用了namespace以后:
[CODE]//vector.h
namespace TEST{
int add(int x, int y);
}
//vector.cc
#include
#include "vector.h"
int TEST::add(int x, int y){
return (x+y);
}
int main(){
std::cout< retur
p**o
发帖数: 3409
2
来自主题: Programming版 - mutating input argument不应该鼓励吧

如果你嫌copy有开销,自己定制一个又不是难事:
def dict_equal_except (dict_a, dict_b, except_key):
assert except_key in dict_a
if len(dict_a) != len(dict_b) + 1:
return False
for key, aval in dict_a.iteritems():
if key != except_key and (key not in dict_b
or dict_b[key] != aval):
retur False
return True
但CPython循环一般比C慢2-3个数量级,dict不大时还不如直接copy。
参考 CPython 实现:
http://hg.python.org/cpython/file/2.7/Objects/dictobject.c
static int
dict_equal(P... 阅读全帖
N*********r
发帖数: 40
3
from bash manual page, `Quoting' section:
Words of the form $'string' are treated specially. The word expands to
string, with backslash-escaped characters replaced as specifed by the
ANSI C standard. Backslash escape sequences, if present, are decoded
as follows:
\a alert (bell)
\b backspace
\e an escape character
\f form feed
\n new line
\r carriage retur
m******k
发帖数: 77
4
各位帮忙看看是不是我简历写的不好,不知道为什么一直没有回复,是市场太差,还是
我太差?2012年12月底毕业,BS
下面是简历,请各位提提修改意见,谢谢!
Mary Georgia
10 Downing Street, New York City, NY 10000
x*********[email protected] (888) 666-8888
OBJECTIVE
Seeking an Accounting internship position for summer 2012 where experience i
n business accounting and management will be further developed and utilized
KEY QUALIFICATIONS
o Dependable team player with ability to work independently under minimal su
pervision
o Detail-oriented, efficient, and organized professiona... 阅读全帖
w***s
发帖数: 7132
5
不是学会计的,不过作为一个折腾了很久才找到工作的人的2分钱:
我个人感觉,基本上是:
1)强调已有相关行业经验,你如何如何fit到这个部门。很多技巧是通用的,
就是要换一种说法
2)会A,B,C种软件--(给老板的暗示是,你看,我和你们用的软件一样,
说明我确实有实战经验,而且还不用培训我怎么用软件)
3)team player,communication很好,英语一点问题都没有(他们招人也
希望找一个好相处的)
4)有证书/学位等(满足公司HR的硬条件了)
你这2段可以并为简单的一句话,写在开头。
比如改成:Experienced accountant(这个需要自己改,如果有几年经验就可以
写上了,但是你也可以同时强调说你还是学生,因为现在很多公司的校园招聘还没冻结,
如果太overqualify也不好) looking for XX internship in
XXXX (领域)
OBJECTIVE
Seeking an Accounting internship position for summer 2012 where
experience i
n business acco... 阅读全帖
k******t
发帖数: 1498
6
来自主题: Accounting版 - Startup cost如何报税?
大家好,我现在筹备成立一个公司,关于startup cost deduction有些疑问,希望班上
的专业人员能帮我解答:
http://www.sba.gov/community/blogs/community-blogs/small-busine
tup-cost-tax-deductions-%E2%80%93-how-write-expense
其中一段:
How Much Can You Deduct?
If you started your business in 2011, had startup costs of $50,000 or less,
and incurred startup and/or organizational expenses after October 22, 2004,
you can deduct up to $5,000 in business startup costs on your 2011 tax retur
n. If those startup costs exceed $50,000, the $5,000 first-ye... 阅读全帖
h*******d
发帖数: 272
7
来自主题: Actuary版 - 求教 SAS 用于简单PROTFOLIO 分析
大家好 不知道大家有没有做过类似的分析或是PROJECT 不知道能不能和我SHARE 一下
实例
一个课程的CASE STUDY 其实很简单 高中的数学 但我想用SAS 编程练习下 发现自己一
头雾水
老师给出一个表格 33个公司STOCK的:
1 名字
2 规模(大,中 小 国际)
3 平均回报率
4 RISK (beta)
然后就是常规的一些CONSTRAINTS: 比如 每个公司STOCK 投入的钱不超过多少
哪几个加起来不超过多少 某几个多于说少于多少 最后的回报至少多少
最后的OBJECT 就是 1 MAX RETURE (OR) 2 min RISK
我知道可以用SOLVER , LINDO 解LP 但是基本需要33个参数手工输入
SAS 的PROC LP 也是需要手工输入参数 而且似乎某些CONSTAINTS 比如 几个加起来的
在某个范围内 不知道怎么设
不知道大家有谁做过类似的PROJECT 没有 希望您能和我SHARE 一下实例分析
大家觉得我有必要用SAS 分析吗 我是转专业的 对数据分析感兴趣 我想 至少我可以放
在简历上 我目前的简历都是过去的实验室工
O******e
发帖数: 4845
8
Press Release
2012-10-08
The Nobel Assembly at Karolinska Institutet has today decided to award
The Nobel Prize in Physiology or Medicine 2012
jointly to
John B. Gurdon and Shinya Yamanaka
for the discovery that mature cells can be reprogrammed
to become pluripotent
Summary
The Nobel Prize recognizes two scientists who discovered that mature, specia
lised cells can be reprogrammed to become immature cells capable of developi
ng into all tissues of the body. Their findings have revolutionised our... 阅读全帖
s*****o
发帖数: 22187
9
来自主题: EE版 - 请教个exp(x)的估计问题
可以用穷举法编个程序吗?我知道很笨,但应该可行吧。瞎写个算法,跟定有错,你看
看能不能改改再用吧。
y=exp(c/d);
m=int(y);
n=int(y)+1;
min=2^16;
for i = 1 : 2^16-1
{ for j = i*m : i*n
{ delta = y-i/j;
if delta < min
{ min = delta;
a=i; b=j;
}
}
}
reture a,b;
l***g
发帖数: 1035
10
来自主题: EE版 - [job post]
Power Electronics Engineer
Job Qualifications:
BS in Electrical Engineering with an emphasis in Power Electronics.
High Volume Manufacturing Experience
Automotive Industry experience is a plus.
Magnetics Design is a plus
Familiar with 3 Phase AC Inversion
A minimum of 5 years related experience is needed for this position
Job Description:
Position will require the design of power electronics, and control circuits
for Electric and Hybrid electric vehicles, including DC-DC converters, 3 pha
se mot... 阅读全帖
l*****9
发帖数: 15
11
来自主题: Engineering版 - Urgent : short online survey (pls help)
Dear all,
First of all let us introduce ourselves. We are graduates students from
Cornell University, majoring in human resources management.
We are conducting a survey for our "Staffing" class and are looking for
Chinese engineering students to respond to our survey. The survey is about
the perspectives of Chinese returness on the employment opportunities in
China.
We wonder if you can kindly complete this short surey online or send the
survey link to any of your friends who are in the "enginee
t*****r
发帖数: 1765
12
学校收到的那封信里究竟有什么?
一份有你签名的授权书:就是填报名表时候写的那张纸
Authorization for Academic Records(Transcripts)
一封向你学校说明的信
一张需要你学校填的表格(英文填写)如下
一个特殊回邮信封-信封上要求老师签名
上面写着:
signature of Registrar Date
This envelope contains a confidential document and must be retured sealed and signed to the Commission on Graduates of Foreign Nursing Schools by the Registrar.
记得表格连同你英文成绩单封好一同邮回去,可以在外面加套快递信封。
国内收到的都是英文的
我之前翻成中文给老妈再转交给老师的
需要的请留底吧
Verification of Academic Record
CGFNS P.O. Box 8628,Philadelphia PA 19104-8628 USA Telephon
J******f
发帖数: 355
13
来自主题: Nursing版 - 说说我的工作2周的经历吧,续
换foley,你可以把旧的clamp 1个小时,然后再撤旧的同时换新的。其实怎么做都行,
目的是让膀胱里存点尿液。插FOLEY时没有URINE RETURE是不行的。
年老的女性患者插FOLEY的时候,用IODINE SWABS压紧皮肤使点劲擦,有时候(据说不
是所有的时候)尿道口处会冒个小泡泡,把手里的iodine swab插进去做个标记,这是
本版绿豆家的领导以前提到的,我试了几次倒是都成功了,再此感谢一下:-)))
加油。我刚开始的压力大的不行,每天上班都愁眉苦脸的,我觉得你的心态已经比我轻
松很多了。:-))
J****x
发帖数: 37
14
来自主题: Quant版 - 有个公司要让我做coding test
Here is the coding test from a hedge fund. It is for two hours. Hope it is
of any help for you.
===================================================================

*******************
PROBLEM STATEMENT 1
*******************
The sentence "A quick brown fox jumps over the lazy dog" contains every
single letter in the alphabet. Such sentences are called pangrams.
You are to write a method getMissingLetters, which takes a String, sentence,
and retur
h*******d
发帖数: 272
15
来自主题: Statistics版 - 求教 SAS 用于简单PROTFOLIO 分析
大家好 不知道大家有没有做过类似的分析或是PROJECT 不知道能不能和我SHARE 一下
实例
一个课程的CASE STUDY 其实很简单 高中的数学 但我想用SAS 编程练习下 发现自己一
头雾水
老师给出一个表格 33个公司STOCK的:
1 名字
2 规模(大,中 小 国际)
3 平均回报率
4 RISK (beta)
然后就是常规的一些CONSTRAINTS: 比如 每个公司STOCK 投入的钱不超过多少
哪几个加起来不超过多少 某几个多于说少于多少 最后的回报至少多少
最后的OBJECT 就是 1 MAX RETURE (OR) 2 min RISK
我知道可以用SOLVER , LINDO 解LP 但是基本需要33个参数手工输入
SAS 的PROC LP 也是需要手工输入参数 而且似乎某些CONSTAINTS 比如 几个加起来的
在某个范围内 不知道怎么设
不知道大家有谁做过类似的PROJECT 没有 希望您能和我SHARE 一下实例分析
大家觉得我有必要用SAS 分析吗 我是转专业的 对数据分析感兴趣 我想 至少我可以放
在简历上 我目前的简历都是过去的实验室工
l****r
发帖数: 14809
16
搞定了,
昨天晚上凌晨给恶霸发的信
十分钟就回复了,
很干脆,credit了,虽然还说了一句“eBay generally does not credit this Retur
n Item Fee back. However..."
N****g
发帖数: 5246
17
nice. 多谢update

Retur
w*******y
发帖数: 60932
18
What's up, guys?
I just got an emal from NewgroupDirect about their new promotion for new and
returing customers. They're offering unlimited plan for $5/month for
lifetime. This plan usually is $20/month.
Enter coupon ngd584732 at checkout to get on the promotion. The coupon is
good for 200 use so if you need a usenet account, be quick!!!
quote
To signup simply visit NewsgroupDirect.com, choose the Unlimited plan (
regular price is $20), then enter coupon code ngd584732. This coupon can
only be ... 阅读全帖
i*****8
发帖数: 6735
19
来自主题: _Xiyu版 - liu/tch vs. mapcar
tch/liu scored 16 on sat. but i could not find the first lottery betting on
who
would win any more. DD mitbbs. hopefully all the $ were retured.
i*****8
发帖数: 6735
20
来自主题: _Xiyu版 - 我的第一块西羽牌牌
kuku, why did you change your post...
what i want to say is, at one point, me and goodbug played xd really well,
we won tch and yoyo all the time, leaving them no words to say, hahaha
but that was before i got pregnant with clay and the time passed and never
retured. oh how i missed it~~

这俩人我认得的,不过V8可以确认一下,我认人本事很差。
c******l
发帖数: 577
21
来自主题: _FreeSpace版 - To Zeami
Since you have refused to receive my letter. Below are my final words, which
was just retured by you :)
"
Sorry that I didn't know that you are a girl. My bad. I should be more
sensitive and gentle to you. Usually I am very straight and rude to man. I
think I misunderstood your words before, about the "love triangle" between me,
tokyo and Izu. Although those words are purely bullshit, I understand your
kindness. You were just trying to be nice to me... And I am sorry that I ust
the right of BM t
首页 上页 1 2 3 4 5 (共5页)