this is the code source of my program 我在与while循环的问题//而(P!= NULL) 它不工作每当执行reachs循环程序停止工作!尽管P已经初始化,并且p在循环之后不被使用! void Ajout_Debut() {
Q=(Liste*) malloc(sizeof(Liste));
Liste *Q=new Liste();
cout<<"do
我有一个问题,解决这个问题: 我必须接收数字作为输入和第一个数字必须为0(如果数字为0关闭循环)但是编译器让我把一个号码作为输入,当我按下ENTER它stucks 这里是我的代码: #include <stdio.h>
int main(){
int num=0, max=0, first=0, a=0, b=0;
do{
b = num /10;
如果我尝试代码: for i in range(10):
if i < 5:
continue
print(i)
将打印的数字6-10。 但代码: for i in range(10):
while i < 5:
continue
print(i)
将永不终止。 似乎while循环不增加i。 我在这里错过了什么?