由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - question about C/C++ mixing
相关主题
某某 trading 的一道题[工作机会] - Junior Trader (Shenzhen)
2 openings of Financial Software Developer in NYCC & C++ mixing question
2 openings for Financial Software Developer请教struct inside class的问题(C++)
Please recommend a quant book in energy areaC++中使用back_inserter为啥可以不用#include 和using std::back_inserter;??
job posting for a friendaccess function static variable
c++/python 强化班 (转载)vector
Dusini Capital management 的onsite 面试题真是奇了怪了,VC编译器问题?
How to test a sequence has negative binomial distributionOncology Research Senior Position in China
相关话题的讨论汇总
话题: c++话题: stl话题: question话题: call话题: mixing
进入Quant版参与讨论
1 (共1页)
w******g
发帖数: 67
1
"Question about C functions calling C++ STL - can we C structs typecasted
into C++ containers (asked some specifics here)"
Call C functions call STL function?
Actually, this is from someone's interviewing one headhunter sent to you.
So it maybe just part of original question. Any idea, reference or
discussion is welcome.
Thanks a lot.
w******g
发帖数: 67
2
我觉得题目的意思可能是:
1. C 程序能不能调用 STL 库函数
2. 如果可以, 能不能把C程序中定义的struct 作为变量传给 STL 函数。
比如,我在C程序中定义了一个struct list(或者是array of struct), 能不能调用STL
中的标准函数(像:sort,find),把C程序中的list(或者是array of struct)作为
参数传给sort 或者 find?或者在什么情况下可以传递呢?
如果理解的不对,请指教。
k*******d
发帖数: 1340
3
用的是C的编译器还是C++的编译器,如果只有C的编译器,很难想象它可以调用STL...
如果是C++的编译器,如果C struct满足一些concept,比如指针常常是InputIterator/
OutputIterator,应该可以被STL的算法调用
k*******d
发帖数: 1340
1 (共1页)
进入Quant版参与讨论
相关主题
Oncology Research Senior Position in Chinajob posting for a friend
Oncology Research Senior Position in Chinac++/python 强化班 (转载)
buy.com还不错吗Dusini Capital management 的onsite 面试题
有做废纸品出口的吗?How to test a sequence has negative binomial distribution
某某 trading 的一道题[工作机会] - Junior Trader (Shenzhen)
2 openings of Financial Software Developer in NYCC & C++ mixing question
2 openings for Financial Software Developer请教struct inside class的问题(C++)
Please recommend a quant book in energy areaC++中使用back_inserter为啥可以不用#include 和using std::back_inserter;??
相关话题的讨论汇总
话题: c++话题: stl话题: question话题: call话题: mixing