sbrk函数是不是系统调用,还是c标准库函数?
Lunix手册说是sbrkisn'tasystemcall,itisjustaClibrarywrapper.而Unix高级编程这个本书里面说,Unix系统调用中处理储存...
Lunix手册说是sbrk isn't a system call, it is just a C library wrapper.
而Unix高级编程这个本书里面说,Unix系统调用中处理储存器分配的是sbrk(2); 展开
而Unix高级编程这个本书里面说,Unix系统调用中处理储存器分配的是sbrk(2); 展开
3个回答
展开全部
{
string name;
int num,age;
cout<<"Please input name,number and age"<<endl;
cin>>name>>num>>age;
this->name = name;
this->num = num;
this->age = age; //这三个语句使用了this指针
}
void print()
{
cout<<"name = "<<name<<" num = "<<num<<" age = "<<age<<endl;
}
};
int main()
{
Student student;
student.setData();
student.print();
system("pause"); //这个语句使程序停下来,看出输出结果。vc6.0下可以去掉
return 0;
string name;
int num,age;
cout<<"Please input name,number and age"<<endl;
cin>>name>>num>>age;
this->name = name;
this->num = num;
this->age = age; //这三个语句使用了this指针
}
void print()
{
cout<<"name = "<<name<<" num = "<<num<<" age = "<<age<<endl;
}
};
int main()
{
Student student;
student.setData();
student.print();
system("pause"); //这个语句使程序停下来,看出输出结果。vc6.0下可以去掉
return 0;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
int *p = (int *)malloc(100);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询