#include <stdio.h>
#include <stdlib.h>
int main()
{
int digit_seen[10] = {0}, a[10] = {0};
int digit, b = 0;
long int n;
printf("请输入数字:");
scanf("%ld", &n);
......................
阅读全部
|
什么名称好呢
贴于 2018年8月13日 18:59
hide
bbsi
/*1002 写出这个数 (20)(20 分)
读入一个自然数n,计算其各位数字之和,用汉语拼音写出和的每一位数字。
输入格式:每个测试输入包含1个测试用例,即给出自然数n的值。这里保证n小于10^100^。
输出格式:在一行内输出n的各位数字之和的每一位,拼音数字间有1 空格,但一行中最后一个拼音数字后没有空格。
输入样例:
1234567890987654321123456789
输出样例:
......................
阅读全部
|
北溟有鱼为鲲
贴于 2018年8月7日 09:54
hide
bbsi
#include<stdlib.h>
#include<stdlib.h>
void main()
{
int X[2][5]={{1,2,3,4,5},
{6,7,8,9,10}};
//定义数组指针用于指向二维数组X
int(*pxElement)[5]=X;
int m=0;
int n=0;
printf(“二维数组元素如下:\n”)
for(m=0;m<2;m++)
......................
阅读全部
|
q359221445
贴于 2018年8月1日 20:25
hide
bbsi
#include <stdio.h>
int main()
{
int a[]= {45,32,12,55,67};
int b[]= {22,32,87,90};
int i,j;
for(i=0; i<sizeof(a)/sizeof(int); i++)
for(j=0; j<sizeof(a)/sizeof(int); j++)
printf("%d*%d=%d\n",a[i],b[j],a[i]*b[j]);
return 0;
}
阅读全部
|
风飘无殇
贴于 2018年7月29日 20:42
hide
bbsi
#include<stdio.h>
struct a2
{
int s;
int s2;
};
struct a1
{
int s1;
char c;
struct a2 b;
......................
阅读全部
|
蓑笠翁
贴于 2018年7月3日 00:12
hide
bbsi
#include <stdio.h>
int main(void)
{
int num1=2; /*定义整型变量 num1,并赋值为2*/
int num2=3; /*定义整型变量 num2,并赋值为3*/
printf("I have %d cats.\n",num1); /*调用printf()函数*/
printf("You have %d cats.\n", num2);
return 0;
}
阅读全部
|
芙蓉王
贴于 2018年6月30日 14:55
hide
bbsi
fgfhfhx~chfchdhrydjfhghhdhjghfhdghfghdgjfg
rhg hfhjf
dhdh
f
ghgf
fhIh
阅读全部
|
airt
贴于 2018年6月29日 22:52
hide
bbsi
data ends
code segment
start: mov ax,data
阅读全部
|
商殇
贴于 2018年6月16日 18:14
hide
bbsi
成绩排序运行不了,总成绩怎么改成平均分~~请大家帮帮忙!!
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
class student
{
friend class studentMessage;
student *next;
char name[30];
char num[30];
......................
阅读全部
|
TongLee
贴于 2018年6月12日 12:37
hide
bbsi
/*
* locking.h
* This file has no copyright assigned and is placed in the Public Domain.
* This file is a part of the mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within the package.
*
* Constants for the mode parameter of the locking function.
*
*/
#ifndef _LOCKING_H_
#define _LOCKING_H_
......................
阅读全部
|
cstdio
贴于 2018年6月10日 18:37
hide
bbsi