c 程式,幫忙編寫一下,c 程式,幫忙編寫一下

時間 2021-07-25 23:43:43

1樓:匿名使用者

#include "stdafx.h"

#include

using namespace system;

using namespace std;

int main(array^args)

;int *p1 = &a[0];

int b[19] = ;

int *p2 = &b[0];

int n;

cin>>n;

void firstshow(int *p,int n);

firstshow(p1,n);

void deletenumber(int *p);

deletenumber(p2);

return 0;

}void firstshow(int *p,int n){for(int i=0;i<10;i++){if(*(p+i)==n)

{cout<

2樓:匿名使用者

1.當n=5時,不是應該輸出 5 is no.2嗎?

我寫了乙個,在vc++環境下執行是沒有問題的,還有別的問題咱們再交流~~

#include

using namespace std;

const int a=;

int fun(int n)

}return k;

}int main()

我用c++編寫了乙個程式總是不對,向大家幫我找一下毛病,或者輸入一下這道題的程式。

3樓:砍侃看

#include

#include

using namespace std;

int main()

{int x, y;

cout << "請輸入x:";

cin >> x;

if (x >= 3 && x <= 20){y = x + 5;

cout << y < 20)

{y = x - 10;

cout << y <

都是些基本的語法問題,再加上一點的邏輯問題

4樓:匿名使用者

#include

using namespace std;

int main()

else if(x < 3)

system("pause");

return 0;}

c語言程式,幫忙詳細分析一下,C語言程式,幫忙詳細分析一下!

天堂妹兒 選b,等於10。首先是t 3 f t,3 也就是4 f t,3 然後是4 t 2 f t,2 算出來是7 f t,2 然後是7 t 1 f t,1 算出來是9 f t,1 然後是9 t 0 f t,0 算出來是10 f t,0 由於此時n 0,所以返回,結果為10。 草野閒羊 選b,等於1...

c 程式編寫,c 程式編寫

include using namespace std struct fushu int add int m,int n double add double m,double n fushu add fushu m,fushu n int main int add int m,int n doubl...

c語言程式大神幫忙設計一下

自我程式設計 按照題目要求 1 實現檔案寫入功能,一次寫入一個職工資訊。2 實現查詢功能 包含4種條件查詢 3 實現資訊刪除和修改並寫入檔案。根據題意,資料用結構陣列儲存,且職工編號唯一性,因此單獨兩個函式計算資訊長度和編號。除條件查詢函式和讀取檔案的函式,不會自行free釋放記憶體。如你寫 呼叫,...