由买买提看人间百态

topics

全部话题 - 话题: funca
(共0页)
p*****p
发帖数: 379
1
例如funcA, funcB, funcC,funcA传C的名字到funcB由B调用C,java里能用invoke之类
的做到,C++貌似不行?当然用个hash_map记录名字到指针的对应是可以,但是B可能不
知道具体有哪些func
S*******s
发帖数: 13043
2
来自主题: 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
l****z
发帖数: 29846
3
西班牙地方选举,执政的社会党大败,超过90%地区计票结果,反对党人民党领先10%
Zapatero’s Socialists Routed as People’s Party Takes 38% of Vote in Spain
By Emma Ross-Thomas - May 22, 2011 5:04 PM ET
Spain’s Socialists suffered their worst electoral defeat in more than 30
years as voters punished Prime Minister Jose Luis Rodriguez Zapatero’s
party for soaring unemployment and spending cuts that aimed to shield the
country from Europe’s debt crisis.
With 91 percent of votes counted, the opposition People’s Party won 38
percent of the ... 阅读全帖
e*n
发帖数: 1511
4
来自主题: _pennystock版 - France warns on credit rating[zz]
http://www.reuters.com/article/idUSTRE64R35J20100530
(Reuters) - France admitted on Sunday that keeping its top-notch credit
rating would be "a stretch" without some tough budget decisions, following
German hints that Berlin may resort to raising taxes to help bring down its
deficit.
France
Euro zone trade unions are preparing for possible confrontations in the
coming week if governments impose austerity measures or labor reforms
unilaterally.
But ministers made clear they were ready to take unp... 阅读全帖
(共0页)