主页 > 程序语言 > 求程序源代码。(计算机C语言编写)谢谢。

求程序源代码。(计算机C语言编写)谢谢。

2023-12-29 03:54来源:m.sf1369.com作者:宇宇

一、求程序源代码。(计算机C语言编写)谢谢。

#include<stdio.h>

int main()

{

    char c1='C',c2='h',c3='i',c4='n',c5='a';

    c1+=4;

    c2+=4;

    c3+=4;

    c4+=4;

    c5+=4;

    printf(%c%c%c%c%c\n,c1,c2,c3,c4,c5,);

    return 0;

}望采纳 ,谢谢

二、求一段C语言源码!二三十行以上 类型随意

一个统计字符的程序

求程序源代码。(计算机C语言编写)谢谢。

类型随意 class=ed_capture src=%3A%2F%2Fpic.wenwen.soso.com%2Fp%2F20110715%2F-397867805.jpg>

#include<iostream>

using namespace std;

void main()

{

  char s[30];

 int n[30];

 char c;

 int count=0;

 for(int i=0;i<30;i++) n[i]=0;

 cout<<输入字符串:;

 while((c=getchar())!=10)

 {

  int i=0;

  for(i=0;i<count;i++)

  {

   if(s[i]==c)

   {    n[i]++;    break;

   }

   

  }

  if(i==count)

  {

   s[count]=c;

   n[count]++;

   count++;

  }

 }

 cout<<输出:\n;

 for(int i=0;i<count;i++)

  cout<<s[i]<<=<<n[i]<<\n;

 fflush(stdin);

 getchar();

}

三、求一些供C语言初学者看的源代码

输入十个数,求出最大数。

#include double max_number(double x[]) { double max=x[0]; int i; for(i=1;i<=9;i++) { if(max

四、求C语言或者c++完整代码、、、

#include #include /* 实现循环队列 */ #define CAPACITY 100 typedef struct CircularQueue { int elements[CAPACITY]; int front; /* 队列头 */ int rear; /* 队列尾 */ int length; /* 队列中元素个数 */ int capacity; /* 队列的长度 */ } CircularQueue; static CircularQueue queue = { { 0 } }; /* 入队列 */ static void CircularQueue_push(int element) { if (queue.length == queue.capacity) { /* 队列已满 */ printf(No\n); return; } queue.elements[queue.rear] = element; queue.rear = (queue.rear + 1) % queue.capacity; queue.length++; } /* 出队列 */ static int CircularQueue_pop(void) { if (queue.length == 0) return -1; /* 队列已空 */ int e = queue.elements[queue.front]; queue.front = (queue.front + 1) % queue.capacity; queue.length--; return e; } int main() { int i; int n, m, d; scanf(%d%d, &n, &m); queue.capacity = m; for (i = 0; i < n; i++) { scanf(%d, &d); if (d == 0) printf(%d\n, CircularQueue_pop()); else CircularQueue_push(d); } return 0; }

五、写程序的语言代码

编程 不是这么简单的````

编程的语言有 低级一点的 汇编 C语言 这些

高级语言有 C# JAVA C++ VB这些

每一门语言有一门语言的优点 作用

甚至像HTML T-SQL css 这些都是一种编程语言

也不是随便发点程序给你 你就能看得懂的

六、C语言的一些代码

# include “stdio.h”

main()

{

int m;

char n;

}

相关推荐

哪些编程语言是函数式的

程序语言 2024-01-14

VB编程的函数详解

程序语言 2024-01-02

c语言扑克牌问题

程序语言 2023-12-28

iphone语言与地区有什么用?

程序语言 2023-12-19

C语言程序,怎么使用,

程序语言 2023-12-17

把word嵌入到C#程序中

程序语言 2023-11-26

HTML是不是编程语言?

程序语言 2023-11-17