Unix 对于gcc,我似乎是对的)@quasiverse-我甚至不认为跳转到这样一个函数之外的标签是合法的!(刚刚用gcc试过,似乎我是对的)这是我在这么多年中见过的最糟糕的相关性/大小比。试着把你的回答编辑得更简洁。这是我在这么多年里见过的最糟糕的相关性/大小比

Unix 对于gcc,我似乎是对的)@quasiverse-我甚至不认为跳转到这样一个函数之外的标签是合法的!(刚刚用gcc试过,似乎我是对的)这是我在这么多年中见过的最糟糕的相关性/大小比。试着把你的回答编辑得更简洁。这是我在这么多年里见过的最糟糕的相关性/大小比,unix,Unix,对于gcc,我似乎是对的)@quasiverse-我甚至不认为跳转到这样一个函数之外的标签是合法的!(刚刚用gcc试过,似乎我是对的)这是我在这么多年中见过的最糟糕的相关性/大小比。试着把你的回答编辑得更简洁。这是我在这么多年里见过的最糟糕的相关性/大小比。尝试编辑您的回复,使其更简洁。 for i in {1..50} ; do ./addTwoNumbers ; done int count=0; int main() { beginning: //do whatever yo


对于gcc,我似乎是对的)@quasiverse-我甚至不认为跳转到这样一个函数之外的标签是合法的!(刚刚用gcc试过,似乎我是对的)这是我在这么多年中见过的最糟糕的相关性/大小比。试着把你的回答编辑得更简洁。这是我在这么多年里见过的最糟糕的相关性/大小比。尝试编辑您的回复,使其更简洁。
for i in {1..50} ; do ./addTwoNumbers ; done
int count=0;


int main()
{
beginning:    
//do whatever you need to do;
int count++;
if (count<=50);
{
goto beginning;
}
return 0;
}
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char* argv[]) { 

    int numTimes = 1;   

    if (argc > 1)
    {
        numtimes = atoi(argv[1]);
    }

    for (int i = 0; i < numTimes; i++)
    {
        // Your code goes here
    }
}
echo $SHELL
The response I get is 
/bin/bash
#! /bin/bash
(or whatever you got from echo $SHELL).
chmod +x ./filenameofmyshellcommand
./filenameofmyshellcommand
for ((i=1;i<=50;i++)) do
echo "Invocation $i"
/complete/path/to/your/command
done
for ((i=1;i<=50;i++)) do echo "invocation $i" & done