请问为什么这个只会输出100,不会输出101等数字

问题遇到的现象和发生背景 请问为什么这个只会输出100,不会输出101等数字
用代码块功能插入代码,请勿粘贴截图
#include
using namespace std;
int main()
{
    int a = 1, b = 0, c = 0; int d = ((100 * a) + 10 * b + c);
    do
    {
        cout << d << endl;
        c++;
        
        
        
    } while (d<1000);





    system("pause");
    return 0;
}

因为d就是100啊
int d = ((100 * a) + 10 * b + c)这句话就是计算出d=100了
然后while循环里面输出的也是d,但d并没有改变
可能这是你想要的效果

#include<iostream>
using namespace std;
int main()
{
    int a = 1, b = 0, c = 0; int d = ((100 * a) + 10 * b + c);
    do
    {
        cout << d << endl;
        d++;
        
    } while (d<1000);
    system("pause");
    return 0;
}

姑娘,你是想改变 c,就能把d 也改了吧?
但是c 语言是面向过程的,你没过程,你想c 语言回头执行d?