幫我下C語言 程式設計答案寫下,幫我下 ,C語言 程式設計 答案寫下

時間 2021-05-07 20:01:23

1樓:愛夜

//formalue  中綴表示式

//desc   目標

void convert(char *formalue,char *desc)

;//模擬棧

unsigned int stack_p = 0;//棧指標while( *formalue)

if( *formalue == '(')if(*formalue == ')')

stack_p--; //丟棄『(』

formalue++;

continue;

}if( (*formalue == '+'||*formalue == '-')&& stack_p)

stack[++stack_p]= *formalue++;

continue;

}if( (*formalue == '*'||*formalue == '/')&& stack_p)

stack[++stack_p]= *formalue++;

continue;

}if( ! stack_p)

}while( stack_p)

*desc = 0;}

2樓:萢萢

可以告訴你原理,**建議自己寫吧。

3樓:

這種題目,這種口吻,就算知道結果也不想說答案。

4樓:揭戈雅

c語言 中綴轉字尾 **有

幫我下~!!!!,c語言-程式設計 !!!答案寫下

5樓:風雷九州

#include

#include

#include

int main()

printf("%d\n", sum);

return 0;}

6樓:

#include

main()

printf("sum=%ld",s);}

7樓:匿名使用者

#include

int main()

{int a,n,i ;

int sum, t;

scanf("%d %d", &a, &n );

sum=0;

t=0;

for( i=0;i

幫我下~!!!!,c語言-程式設計 !!!答案寫下 5

8樓:水上漂湯

#include

#include

int main()

}printf("%d\n", op[0]);

return 0;}

幫我下~!!!!,c語言-程式設計 !!!答案寫下

9樓:水上漂湯

#include

int main()

;int sum = 0;

for (int i = 1; i <= n; ++i)}for (int j = 0; j < 10; ++j)printf("%d ", count[j]);

return 0;}

幫我下~!!!!,c語言-程式設計 !!!答案寫下

10樓:匿名使用者

可以參考下這個

幫我下~!!!!,c語言-程式設計 !!!求寫下整個**t.t 10

11樓:

#include

#include

int main(void)

else

}if (0 == flag)

else}}

return 0;}

12樓:匿名使用者

#include

void main()

for(j=0;j

}if(flag==1)

printf("no\n");

else

printf("%d\n",i/2);}

幫我下~!!!!,c語言-程式設計 !!!

13樓:匿名使用者

void remove_duplicates (list list)

else list=list->next;}}

t_t幫我下~!!!!,c語言-程式設計 !!!

14樓:向陽

用兩個指標p1,p2。p1指向頭指標,然後p1向後移動k位,這時p2也指向頭指標,讓後p1,p2一塊同步向後移動。當p1到達連結串列尾部時,p2就指向了倒數第k個位置!

跪求C語言能人幫我檢查這個C語言程式設計,急求,不勝感激

執行過了,結果是對的。include include int fun long x if d n x j n d 0 d歸0 return j main 當然不是死迴圈的原因,就不要亂說了.是因為你的d變數每一輪之前都沒有置0,導致d越加越大.把d 0放到while的上一句就好了 一樓的還是不行,二...

linux下c語言程式設計出現段錯誤

簡單看了一下你的程式 首先,你沒有給出完整的程式,這個讓大夥看起來確實不方便,因為沒有main函式,可能踩記憶體的地方並不是這個函式本身,是main函式 其次說你的這個函式,貌似確實有點問題,但是由於沒有完整的程式,我只說出我的理解,如果有錯,直接忽視就好 sprintf flag height,0...

c語言程式編寫請教一下,謝謝了,C語言程式設計請教 編寫一個程式,

夏天的小紅花 按照題目的要求,定義四個變數,a,b,c,max。然後按照題目的要求分步實現就可以了 使用條件表示式就比較簡潔 include int main return 0 程式中為了方便多種情況驗證,加入了for迴圈。若不需要時,可以刪除for這一行,以及上下緊接著的一對花括號。 已存在這個名...