由买买提看人间百态

topics

全部话题 - 话题: templating
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
G********d
发帖数: 10250
1
来自主题: PhotoGear版 - I want resume template from linkedin...
The pdf resume generated by Linkedin is beautiful.
I wonder if there is a TeX template for that.
p*********y
发帖数: 2741
2
【 以下文字转载自 Military 讨论区 】
发信人: playadelrey (A smile is a curve gets things straight), 信区: Military
标 题: 给力OCA直接跟ABC和JK较劲,直接给template去抗议赞助商
发信站: BBS 未名空间站 (Sat Nov 23 22:20:58 2013, 美东)
这么明确,简单,动动手指的事情,大家一起来把它给办了!
请大家多多转贴,转载
信中说:
OCA chapter members, lay advocates, and interested individuals can file a
form 2000e complaint with the FCC
点击链接填表抗议:
https://esupport.fcc.gov/ccmsforms/form2000!formSelection.action
Additionally, individuals can support OCA’s efforts to pull sponsorship
from Jimmy Kimme... 阅读全帖
s***k
发帖数: 23
3
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: stock (Microsoft is dead), 信区: Programming
标 题: Perl for programmers(10): A template for CGI file
发信站: The unknown SPACE (Fri May 26 11:12:07 2000) WWW-POST
#!/usr/bin/perl -w
############################################################
################
# Copyright (c) 1999-2000 Ywu.com Inc.
# This program contains proprietary and confidential
information. All
# rights reserved except as may be permitted by prior
written consent.
#
# R E V I S
b****c
发帖数: 49
4
来自主题: BuildingWeb版 - 哪里会有好的restaurant template买?
个人的水平有限,要帮一个朋友做一个restaurant的网页,从哪里找template?
thanks
r********m
发帖数: 17
5
来自主题: BuildingWeb版 - help: finding a template
Hi, could someone give me some recommendations of websites that offer template
downloads? Not just free downloads.
Thanks very much
g******d
发帖数: 157
6
来自主题: BuildingWeb版 - help: finding a template
templatemonster.com

template
q**1
发帖数: 193
7
来自主题: BuildingWeb版 - DreamWeaver template 问题
templating系统是个好东西,什么东西都可以做成components,
可以用wrappers,reusability和可维护性都和 CGI 的年代无法相
提并论。。 呵呵,要学的东西也是越来越多了。。。
a*********0
发帖数: 123
8
I downloaded a joomla template and would like do some edition to custdomize
it. But I don't know how to preview the result? Can anyone help?
I can upload it to the remote hosting server to view it but that would be
inconvenient.
Thanks!
p******8
发帖数: 551
9
来自主题: BuildingWeb版 - mitbbs.com 's template? Please!!!
I wonder if I can download or get the forum template similar as mitbbs?
try to build one for particular tech area. Thank you!!!
r****y
发帖数: 26819
10
来自主题: BuildingWeb版 - mitbbs.com 's template? Please!!!
这个bbs的template有什么优点啊
没看出来。。。
p******8
发帖数: 551
11
来自主题: BuildingWeb版 - mitbbs.com 's template? Please!!!
I already have Phpbbs but it is difficult to post the news.Any more good
templates for forums and news and easily customizations? ThankS!
s*******y
发帖数: 558
12
Makefile编译中间错误信息是:
./main.C:5: undefined reference to 'Empty::Empty[in-charge](int const&)'
collect2: ld returned 1 exit status
make: *** [main] Error 1
Empty.H文件如下:
#ifndef EMPTY_H_
#define EMPTY_H_
template
class Empty{
public:
Empty(const Object& obj);
private:
Object objectValue;
};
#endif
s*******y
发帖数: 558
13
谢谢
问题已经解决了
如果一定要把interface和implementation分开
只要在Empty.H的最后(在#endif之前) 加上 #include"Empty.C"
然后makefile里面不编译template, 只编译main就可以了.
t*****n
发帖数: 167
14
I will attend an IEEE conference to present a paper, my boss ask me to apply
for the NSF travel grant, I have not done this before.
Did anyone get this kind of grant before, what is the chances?
What is the standard for evaluating the applicant?
Is there any template for doing this?
thanks in advance for sharing?
w********c
发帖数: 2632
15
☆─────────────────────────────────────☆
starrysky (冰糖葫芦_爱可不可以永远幸福没有悲伤) 于 (Wed Dec 12 15:07:42 2007) 提到:
请问有经验的朋友如何去掉sigmod latex template左下角的permission info?并且让
正文能够填充那一部分空间。 谢谢了
☆─────────────────────────────────────☆
sonyisme (偶静感乖类 :)) 于 (Wed Dec 12 15:23:52 2007) 提到:
改模板

☆─────────────────────────────────────☆
starrysky (冰糖葫芦_爱可不可以永远幸福没有悲伤) 于 (Wed Dec 12 15:45:52 2007) 提到:
改了半天, 只是把那部分字去掉了。 但是那个空间还是没法填充正文。
你知道怎么做?
☆─────────────────────────────────────☆
starrysky (冰糖葫芦_爱可不
M*****a
发帖数: 2054
16
template是C++的精髓
g*****n
发帖数: 239
17
Paper从ACM template 变到 IEEEtran, Gnuplot画的图X,Y轴上的字都挤到了一块(单
词之间没有了空格),有人碰到过,有什么好的解决方法吗?多谢了!
j**o
发帖数: 4
18
来自主题: DotNet版 - template?
Better wait for .Net 2.0 generics. Any hack you come up with will be useless
in a few months.
Generics is a CLR type, so it can be used across .Net languages. But it
doesn't have certain features that template has (yet), such as specialization.
g*****g
发帖数: 34805
19
来自主题: Java版 - view templating technology
The java web frameworks are more or less similar nowadays.
The biggest difference is the view templating technology IMHO.
People all agree MVC pattern should be used. However, in view,
you have presentation logic to wire view and model. How to separate
presentatino logic from view becomes a big design difference.
Generally, people agree view should be dumb so that you cannot
change model or have control logic in it. Sun recommends having
view helper. They used JSP for the implementation, present
n******1
发帖数: 3756
20
来自主题: Java版 - 为什么需要template language
我一直不明白为什么需要template language,像velocity,freemarker,还有些tag
library
我觉得html javascript restful已经解决问题,为什么有时候还会引入这些模板语言
,实际上这些语言,标签既不通用,也不能使数据和页面真正意义上的分离
e***e
发帖数: 168
21
when i used ACM SIG proceeding latex template, the references's first author
's last name is always in abbreviation. For example,
John Smith, David Wang, "paper name". will displayed as
J.S. and D Wang, "paper name".
Can anyone tell me how to make it like:
J. Smith and D. Wang, "paper name"?
Thanks!
a**a
发帖数: 416
22
来自主题: Programming版 - why use template?
You never heard of specialization? suggest you study the parameter
matching order of templated functions.
g*****g
发帖数: 34805
23
来自主题: Programming版 - why use template?
It's good to have compiler check as much as possible and as early as
possible. At the same time, we want to have flexibility.
template will make perfect sense in Collection classes, for example,
Vector is way better than Vector where you will convert
every object to int later on.
a**n
发帖数: 313
24
来自主题: Programming版 - why use template?
I think you can understand template as another kind of polymorphism.
Usually polymorphism refers to inheritance and virtual functions.
p*u
发帖数: 2454
25
来自主题: Programming版 - template metaprogramming 的问题

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~he said he's got a different
implementation of valarray, which is
template class valarray.
Why doesn't std::valarray allow size parameter?
p*u
发帖数: 2454
26
来自主题: Programming版 - a c++ question for template
i think 1 and 2 are correct, unless it's a template function with internal l
inkage.
4 is vague, define "efficient" first.
t****t
发帖数: 6806
27
来自主题: Programming版 - a c++ question for template
there is no "static linkage". there's only 3 types of linkage: external,
internal and no linkage. external linkage object can be referred in other
translation units, internal linkage can be referred in the same translation
unit but in different scope, no linkage can't be referred outside the scope.
whatever static linkage is, both template and macro can be external or
internal linkage. mixing macro and linkage are vague and not strict anyway,
since macros are not seen by compilers at all.
z****p
发帖数: 138
28
来自主题: Programming版 - 问一个C++ template的问题
我在写一个generic 的函数比较两个class是否相等, 其中一个相等条件是这两个
class的ID 相同,可不可以在template里要求传入的类型必须有ID这个member
variable呢?怎样才能做得到呢?
谢谢
z***e
发帖数: 14
29
来自主题: Programming版 - 问一个C++ template的问题
1. You can dynamic-cast the in object to target types. If it fails, do
nothing. Otherwise, get the id from the casted type.
2. If there is no target type known-in-advance, for example you don't want
to list all possible target types or it is created by third party, you can
use template constrain in definition. Some thing like this:
bool Comparer (T t1, T t2) where T : IIDBase
{
return t1.Equals(t2);
}
IIDBase is the interface:
Interface IIDBase
{
int GetID();
}
Then derive a
g***p
发帖数: 139
30
来自主题: Programming版 - 请教template和factory有啥区别?
都是deferring some implementation to subclass.
Template多了点algorithm structure,
看了head first dp有点困惑。谢
g*****g
发帖数: 34805
31
来自主题: Programming版 - 请教template和factory有啥区别?
factory stresses on interface, you have the same interface and pluggable
implementations, thus caller can be unaware of implementation.
Example, DB driver, you want to use one new DB, you have to have a new
driver
that implements the interface.
template stress on using same operation on different data type.
You are implementing a generic operation, most useful for collection
opertations like insert/delete/sort in STL.
g***p
发帖数: 139
32
来自主题: Programming版 - 请教template和factory有啥区别?
fatory - subclass decide which concrete class to create.
template - use delegation decide which behavior to use
nod. 每个pattern都不难理解,放在一起就有点晕。
L*********r
发帖数: 92
33
来自主题: Programming版 - 请教template和factory有啥区别?
factory method pattern: it is a creational pattern. it is used to seperate
the class instantiation from the caller. so the caller can get the object
instance without know or refer to the concrete class.
template method pattern: it is a behavior pattern. it defines the skeleton
of business logic in the abstract class. the subclass implements the
business logic following the skeleton.
O*******d
发帖数: 20343
34
来自主题: Programming版 - 请教template和factory有啥区别?
template是C++语言的一部分, factory不是。
h**o
发帖数: 347
35
来自主题: Programming版 - template class instantiation问题
请问instantiation应该放在哪个文件中?
现在遇到的问题是
template class A
声明在 A.h
定义在 A.cpp
实例在 A.cpp
class B
声明在 B.h
定义在 B.cpp
B要用到A
class C
声明在 C.h
定义在 C.cpp
C要用到B
我想实例化 A< list >,这句应该放在哪里好
如果放在C.cpp中,gcc 好像ignore了。。。
c********e
发帖数: 383
36
来自主题: Programming版 - template class instantiation问题
solution 1, include your template definition in your header file.
solution 1 upgrade, pre compile that header
solution 2, explicit instantiation in a.cpp
y***n
发帖数: 6764
37
来自主题: Programming版 - 有关 template function 的一个问题
template
void foo(T1 t1, T2 t2, T3 t3)
{
...
}
这个code 是可以编译的, 是怎么回事?
S*******s
发帖数: 13043
38
来自主题: Programming版 - where to define my template function
in my project, I have following 3 files
//t.h
#include
template
myFunc (std::vector& var){
....
}
//a.cpp
#include "t.h"
void funcA(){
std::vector a;
std::vector b;
myFunc(a);
myFunc(b);
}
void funcB();
int main(){
funcA();
funcB();
}
//b.cpp
#include "t.h"
void funcB(){
std::vector a;
std::vector b;
myFunc(a);
myFunc(b);
}
if I build it, I'll get an error that myFunc(std::vector&) defined
twice.
if I manage them in di
t****t
发帖数: 6806
39
来自主题: Programming版 - where to define my template function
好象不是这个原因,OP用的什么编译器?
理论上说,template function可以定义多次的
t****t
发帖数: 6806
40
来自主题: Programming版 - where to define my template function
我说了,template 可以被定义多次的。不需要one definition rule.
t****t
发帖数: 6806
41
来自主题: Programming版 - C++ template question
write the friend as:
template
friend bool operator== (const test & p1, const test & p2);

7
const
r****r
发帖数: 115
42
来自主题: Programming版 - c++ template question:
菜啊,看不懂这个template
D*******a
发帖数: 3688
43
来自主题: Programming版 - c++ template question:

不懂template,不过这行是不是少了括号?
c***d
发帖数: 996
44
来自主题: Programming版 - c++ template question:
change IsClassT:: to IsClassT::template .
c*****t
发帖数: 1879
45
来自主题: Programming版 - c++ template question:
agree. That is the reason it is called template programming.

doesn
otherwise
c***d
发帖数: 996
46
☆─────────────────────────────────────☆
TheMatrix (TheMatrix) 于 (Fri Jul 13 18:26:01 2007) 提到:
我看没啥用。
☆─────────────────────────────────────☆
lige (Bird) 于 (Fri Jul 13 18:31:36 2007) 提到:
do you use STL?
☆─────────────────────────────────────☆
OverCloud (天马行空) 于 (Fri Jul 13 23:39:17 2007) 提到:
用处很大的. 比如说, 一个函数要对float and double进行矩阵运算, 在C里就要分别
写两个函数, 而用template只需写一个函数.

☆─────────────────────────────────────☆
OverCloud (天马行空) 于 (Fri Jul 13 23:40:53 2007) 提到:
STL用起来非常方便. 如果你要用do
P********e
发帖数: 2610
47
来自主题: Programming版 - 为什么要用template
inheritance, reuse the object code
template, reuse the source code
y****e
发帖数: 23939
48
来自主题: Programming版 - 为什么要用template
不错,所以用template在compile time多用了时间,但是run time就节约了时间
相比之下,run time的效率当然更重要
g*******s
发帖数: 59
49
来自主题: Programming版 - C++ template question with friend ostream
friend ostream & operator <<(ostream &output, const Complex &rhs)
{
output<<"("< return output;
}
can compile and run well;
however if inside class define
friend ostream & operator <<(ostream &output, const Complex &rhs);
outside class
template
ostream & operator <<(ostream &output, const Complex &rhs)
{
output<<"("< return output;
}
ERROR:
main.obj : error LNK2019: unresolved external symbol
c***a
发帖数: 655
50
比如这个例子:
template
class Test{
T a;
};
Test a;
Test b;
能把各种用过的模板都展开,然后生成C++源码:
class Test_int{
int a;
};
class Test_double{
double a;
}
Test_int a;
Test_double b;
thx
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)