由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 全局对象
相关主题
这个是什么原因请教如何修正这个C程序的bug。
请问c++为什么会编译失败?C 和 C++ 的区别
大家看看这个简单的qsort排序的问题C 里面的 makecontext(&a, (void*)&function1, 0);
一道算法题求教,set operation in c
数组问题C++ question
[合集] 一道C++面试题 (转载)C++里,Base Class如何调用Derived Class的method
C code参数传递出错可能的原因引用的几个基本问题,有点糊涂
大家帮我看看这个C程序为什么出错了一个nested class的问题
相关话题的讨论汇总
话题: test话题: void话题: value话题: intial
进入Programming版参与讨论
1 (共1页)
m*m
发帖数: 1185
1
look at this global variable initialization problem:
**P
void test()
void main()
{
test()
printf(..., P[1][1]);
// Then P's value is not there, what should I do?
}
test()
{
P is defined a dynamic matrix here and also get the intial value
}
g****c
发帖数: 299
2
u should post your full code. what did u get if you put print inside the test?
not this pseudo code, no one can help u with this code.

【在 m*m 的大作中提到】
: look at this global variable initialization problem:
: **P
: void test()
: void main()
: {
: test()
: printf(..., P[1][1]);
: // Then P's value is not there, what should I do?
: }
: test()

1 (共1页)
进入Programming版参与讨论
相关主题
一个nested class的问题数组问题
问一个简单C++问题[合集] 一道C++面试题 (转载)
问一个C++ set和unordered_set iterator的问题C code参数传递出错可能的原因
static initialization dependency c++大家帮我看看这个C程序为什么出错了
这个是什么原因请教如何修正这个C程序的bug。
请问c++为什么会编译失败?C 和 C++ 的区别
大家看看这个简单的qsort排序的问题C 里面的 makecontext(&a, (void*)&function1, 0);
一道算法题求教,set operation in c
相关话题的讨论汇总
话题: test话题: void话题: value话题: intial