注册 登录
编程论坛 C语言论坛

把多个变量值(int型)存入一个数组,取出这个数组中的一些数据,求剩余数据

wcbfpga 发布于 2021-10-25 22:21, 851 次点击
把多个变量值(int型)存入一个数组,取出这个数组中的一些数据,求剩余数据
c和c++都可以,求解
0 回复
#2
自由而无用2021-10-26 08:04
//online parser: https://www.bccn.net/run/
程序代码:
#include <stdio.h>
#include <string.h>

#define ARGV "666wcb2333fpga520 blind1314 test!"
#define isInteger(_n) ((_n >= 0x30) && (_n <= 0x39))

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

    for (i  = 0; i < strlen(ARGV); i++) {
        if (!isInteger(ARGV[i])) putchar(ARGV[i]);
    }

    return 0;
}


output sample:
wcbfpga blind test!
1