c99

    -3热度

    1回答

    我在c-99脚本中使用以下快速排列。 问题是它编译但它没有任何输出。我试图把5,4,3,2,1分成1,2,3,4,5,我什么也没得到。 我不知道我在做什么不正确。 这是我的代码 \\pick a pivot \\make a temporary left and right list \\filter items to left and to the right \\put it all b

    1热度

    1回答

    当我使用--std=c99 GCC定义__STRICT_ANSI__,当它打开时,BSD和System V功能不踢。这意味着__USE_MISC和__USE_POSIX没有定义。 -- stdio.h -- ... #if defined __USE_POSIX || defined __USE_MISC extern int getc_unlocked (FILE *__stream);

    1热度

    3回答

    的隐式声明我不断收到功能“execle”的 隐式声明编译下面的代码时,在C99 无效。我错过了什么? #include <stdio.h> #include <stdlib.h> char *my_env[] = {"JUICE=PEACH and apple", NULL}; int main (int argc, char *argv[]) { execle ("dine

    1热度

    1回答

    从文章: “GNU CC识别浮点不仅在平时的十进制形式写数字,如1.55e1,但也号码如0x1.fp3写在十六进制格式。在这种格式0x 0x介绍人和P或P指数字段是强制性的。指数是一个十进制数字,表示有效数字部分将乘以2的幂。因此0x1.f是1 15/16,p3将其乘以8,并且0x1.fp3的值与1.55e1相同。“ 它似乎说,0x1.fp3被评估为=(1 + 15/16)* 2^3 15/16从

    2热度

    1回答

    从C99规范的WG14/N1124草案§6.4.2, “标识符”: identifier: identifier-nondigit identifier identifier-nondigit identifier digit identifier-nondigit: nondigit universal-character-name

    1热度

    1回答

    我正在学习编程ALSA通过this article和我试图编译下面的例子: /* This example opens the default PCM device, sets some parameters, and then displays the value of most of the hardware parameters. It does not perform any s

    1热度

    1回答

    我使用的是IAR嵌入式工作台,用于MSP430 v5.60.7,它是IAR嵌入式工作台版本6.6。我正在使用C99。 我想覆盖__program_start()与我自己的符号,称为__unit_test_main()函数。我已进入链接器配置选项卡,并选中“覆盖默认程序条目”框,选中“条目符号”选项并在__unit_test_main中键入。这编译和链接,但它不会在模拟器中运行。我收到消息“用户错误

    -1热度

    3回答

    出于某种原因,-std = C99是保持GCC无法看到)功能wborder_set的声明((其居<curses.h>) #include <curses.h> #include <locale.h> int main(int argc, char* argv[]){ initscr(); // start ncurses cbreak(); // don't wait f

    1热度

    1回答

    这个问题被称为八皇后问题(在一个8×8的棋盘上放置8个皇后,这样他们都不会互相攻击/威胁)。我在C中有以下解决方案,它使用递归来打印所有可能的解决方案。我想让它不是递归的,但是我遇到了麻烦,所以我直接将它转换为MIPS。 但是,我仍然希望它不是递归的。 #include <string.h> #include <stdio.h> #include <stdlib.h> int attac

    1热度

    2回答

    我想知道在使用MSVC时处理包含GCC __attribute__扩展的代码的最佳方式。以下是处理此问题的安全方法: #define __attribute__(x) /* blank - should simply ignore thanks to C preprocessor */ 谢谢!