GCC与G++有什么不同?
c4droid吧
全部回复
仅看楼主
level 11
lcygflcy 楼主
GCC与G++有什么不同啊?
2016年07月30日 13点07分 1
level 14
GCC 用于编译c语言程序,G++用于编译c++程序,c4会给不同的编译器不同的编译参数,比如G++会链接libstdc++.a而GCC不会。
2016年07月30日 14点07分 2
谢谢。
2016年07月30日 14点07分
level 12
那TCC又是什么[滑稽]
2016年07月30日 22点07分 3
好像是小型C语言编译器。
2016年07月31日 00点07分
回复 lcygflcy :谢啦[太开心]
2016年07月31日 00点07分
level 5
[太开心]借楼插个缝,
#include<stdio.h>
#include<stdlib.h>
struct S
{
struct S *last;
int data;
struct S *next;
};
int create()
{
struct S *head;
struct S *p1, *p2;
p1 = (struct S *)malloc(sizeof(struct S));
head = p1;
p1->last = NULL;
scanf("%d", &p1->data);
while (p1->data != 90)
{
p2 = (struct S *)malloc(sizeof(struct S));
p1->next = p2;
p2->last = p1;
p1 = p2;
scanf("%d", &p1->data);
}
p1->next = NULL;
return head;
}
int main()
{
struct S *p;
p = create();
while (p->next != NULL)
{
printf("%d ", p->data);
p = p->next;
}
p=p->last;
do
{
printf("%d ", p->data);
p = p->last;
}
while (p -> last != NULL)
}[喷]为什么运行不了[不高兴]
2016年07月30日 22点07分 4
[委屈]求大神快来解答
2016年07月30日 22点07分
[泪]
2016年07月30日 22点07分
[喷]少写一个分号
2016年07月30日 22点07分
@朱颜改之歌 你返回head,那么请问head是什么类型[呵呵],你的函数返回类型又是什么
2016年07月31日 01点07分
1