gpt4 book ai didi

c - 我在功能上做错了什么?

转载 作者:太空宇宙 更新时间:2023-11-04 02:03:33 25 4
gpt4 key购买 nike

<分区>

我正在尝试创建函数而不是在 main 中有一堆代码,但我无法这样做,因为我对这些函数做错了,这是我的代码的样子:

void static notebook(GtkWidget *table, GtkWidget *notebook) {
notebook = gtk_notebook_new();
...
attaching table to notebook
...
}


int main(int argc, char *argv[]) {
GtkWidget *table;
GtkWidget *notebook;

...
notebook(table, notebook);
...
}

有人可以指出我的问题并帮我解决吗?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com