avatar
n*d
1
Found this from a opensurce code, but it can not pass my compiler. How does
it work?
typedef struct rrc_List {
struct rrc_List *next;
int value;
} *rrc_List;
avatar
f*y
2
比如说有若干个约束条件,6个未知数,3个微分方程。请问用matlab的优化工具可以给
出一些最优的数值解
吗?如果不能的话,我应该如何做呢?诚心求教,麻烦大家指点。拜谢!!!
avatar
c*g
3
担心的是工作不能续,失业很可怕
还有就是身份的问题
学校经济困难,估计不能要求出加急的费,要加急估计也是要自己出钱
现在在考虑要不要自己出钱加急,如果让学校加急,学校也不会接受。
不知道学校都是什么时候签合同的。 如果不加急,4月申请,6月出结果把。不知道到
时候会不会晚了。
大家有什么建议么?〉
avatar
k*e
4
贴出你的compiler版本
另外,把最后一个 rrc_List 换个名字看看。

does

【在 n**d 的大作中提到】
: Found this from a opensurce code, but it can not pass my compiler. How does
: it work?
: typedef struct rrc_List {
: struct rrc_List *next;
: int value;
: } *rrc_List;

avatar
w*h
5
我们现在就签合同了
avatar
n*d
6
g++ 3.4.4.
把最后一个 rrc_List 换个名字, of course it works. However, We are not suppose to modify the 3rd party code.

【在 k****e 的大作中提到】
: 贴出你的compiler版本
: 另外,把最后一个 rrc_List 换个名字看看。
:
: does

avatar
c*g
7
你已经签了?8月开学的?
avatar
k*f
8

Then why use opensource code, which is meant to be modified if it doesn't
work for you?

【在 n**d 的大作中提到】
: Found this from a opensurce code, but it can not pass my compiler. How does
: it work?
: typedef struct rrc_List {
: struct rrc_List *next;
: int value;
: } *rrc_List;

avatar
w*z
9
和一个工作相比,加急费真的无所谓,如果你不加急到上班的时候还没有,你怎么办?

【在 c**********g 的大作中提到】
: 担心的是工作不能续,失业很可怕
: 还有就是身份的问题
: 学校经济困难,估计不能要求出加急的费,要加急估计也是要自己出钱
: 现在在考虑要不要自己出钱加急,如果让学校加急,学校也不会接受。
: 不知道学校都是什么时候签合同的。 如果不加急,4月申请,6月出结果把。不知道到
: 时候会不会晚了。
: 大家有什么建议么?〉

avatar
n*d
10
I don't think you know how companies use the opensouce resource. Anyway,
that has nothing to do with this topic.
Let us concentrate on the code. Is it wrong?

【在 k**f 的大作中提到】
:
: Then why use opensource code, which is meant to be modified if it doesn't
: work for you?

avatar
K*n
11
typedef 把一个struct变成 struct*, 没见过这种用法.
一般都是
typedef struct myStruct{
...;
} myStruct;吧

【在 n**d 的大作中提到】
: I don't think you know how companies use the opensouce resource. Anyway,
: that has nothing to do with this topic.
: Let us concentrate on the code. Is it wrong?

avatar
n*g
12
probably the previous standard treats "struct xxx" and "xxx" as different
declarations, so it worked at that time.
not sure.
avatar
r*d
13
This definitely works with a C compiler; but it's an error with a C++
compiler

does

【在 n**d 的大作中提到】
: Found this from a opensurce code, but it can not pass my compiler. How does
: it work?
: typedef struct rrc_List {
: struct rrc_List *next;
: int value;
: } *rrc_List;

avatar
n*d
14
You are right. It passes C compiler. Then it comes how to understand the
code.
The rrc_List should be used to define a pointer which points to the
structure, right?

【在 r********d 的大作中提到】
: This definitely works with a C compiler; but it's an error with a C++
: compiler
:
: does

avatar
K*n
15

冲突的原因估计是:
rrc_List 本来是struct名,现在变成了rrc_List*
我试了下(先不typedef成指针),c++里声明struct可以用
rrc_List rrc_list;//绕过 struct rrc_List rrc_list;
现在typedef以后声明
rrc_List不知道是在说指针还是说他自己.

【在 n**d 的大作中提到】
: You are right. It passes C compiler. Then it comes how to understand the
: code.
: The rrc_List should be used to define a pointer which points to the
: structure, right?

avatar
K*n
16
所以如你所知,换个名字就work了

【在 K****n 的大作中提到】
: 对
: 冲突的原因估计是:
: rrc_List 本来是struct名,现在变成了rrc_List*
: 我试了下(先不typedef成指针),c++里声明struct可以用
: rrc_List rrc_list;//绕过 struct rrc_List rrc_list;
: 现在typedef以后声明
: rrc_List不知道是在说指针还是说他自己.

avatar
T*9
17
typedef struct A{} *A?

does

【在 n**d 的大作中提到】
: Found this from a opensurce code, but it can not pass my compiler. How does
: it work?
: typedef struct rrc_List {
: struct rrc_List *next;
: int value;
: } *rrc_List;

avatar
r*y
18
Avoid using open source code
free means nobody is responsible for it
it's a pain in the ass if your code gets bigger and bigger
and there is a memory leak in the 3rd party code...you dont want that

suppose to modify the 3rd party code.

【在 n**d 的大作中提到】
: g++ 3.4.4.
: 把最后一个 rrc_List 换个名字, of course it works. However, We are not suppose to modify the 3rd party code.

avatar
r*d
19
laf...

【在 r*******y 的大作中提到】
: Avoid using open source code
: free means nobody is responsible for it
: it's a pain in the ass if your code gets bigger and bigger
: and there is a memory leak in the 3rd party code...you dont want that
:
: suppose to modify the 3rd party code.

avatar
f*y
20
funny

【在 r*******y 的大作中提到】
: Avoid using open source code
: free means nobody is responsible for it
: it's a pain in the ass if your code gets bigger and bigger
: and there is a memory leak in the 3rd party code...you dont want that
:
: suppose to modify the 3rd party code.

avatar
d*n
21
avatar
d*n
22
Using open source code is ok, just avoid using the code that is not
maintained.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。