将已经升序排好的字符串a和字符串b按升序归并到字符串c中并输出。
比如:please input string a:
abcegiklnt
please input string b:
dfmopsyz
abcdefgiklmnopstyz
开始代码:
#include<stdio.h>#include<string.h>main(){ int i=0,j=0,k=0; char a[100],b[100],c[100],*p; printf("please input string a:\n"); scanf("%s",a); pri...
从基础做起,学好C语言,以后再拓展。
呵呵.......
合作.....
#include "stdio.h"
main()
{
printf("Hello,eveyone");
}
#include <stdio.h>void main( ){ int i,j;for( i=1; i<=9; i++ ){ for( j=1; j<=i; j++ )printf("%d*%d=%-4d", i,j,i*j);printf("\n"); }}九九乘法表
#include<stdio.h>
main()
{
int letters=0,numbers=0,space=0,others=0; /*先把字母,数字,空格,其他设为零*/
char ch;
printf("please input some characters\n");
while((ch=getchar())!='\n')
{
if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z')
letters++;
...
哪为大哥大姐的能帮忙写个strcat函数啊!
我的java 完了,今天参加了2011国信蓝点杯软件开发大赛,但题太难了,没做完,哎,完了
想成为一名菜鸟,因为好多菜鸟懂好多知识,他们自称菜鸟,而我现在呢却什么都不懂,所以第一步就是成为一名菜鸟!!!!
//图形用户界面之一import java.awt.*;public class Add extends Frame{public Add(String s){ super(s); } public static void main(String args[]){ Add m=new Add("Frame with Panel"); Panel p=new Panel(); m.setSize(400,400); m.setBackground(Color.blue); m.setLayout(null); p.setSize(200,200...
import java.awt.*;public class A extends Frame{public A(String s){ super(s); } public static void main(String args[]){ A m=new A("Hello FlowLayout"); m.setSize(400,400); m.setBackground(Color.blue); Panel p=new Panel(); p.setSize(200,200); p.setBackground(Color.yellow); m.setLa...
今天下雨了
有时有些事,总是顿悟得太晚,当明白时,已无力回天。
话语只是成功的描述,行动是成功的前提。
有时候再多的话语也显得苍白无力
什么时候也能写出很好的代码呀??学习呀!!
EFS作为一种安全性较高的加密方式一直深受大众的喜爱。但是在Windows XP以前,EFS加密是不支持共享的,这就意味着被加密的文件只能由加密操作者或安装了加密证书的用户查看,给网络上的共享造成一些不便。 微软认识到了这个问题,在Windows XP Professional的EFS版本中,加入了共享的特性。要共享一个被EFS加密的文件,必须由系统管理员或文件加密操作者操作,否则会在操作过程中出错。具体操作步骤如下: 1.用管理员组里面的账户或EFS加密创建者账户登录Windows,然后打开被加密的文件夹(因为EFS是对文件加密,不是对文件夹加密,所以其他用户也可以打开文件夹),右...
#include <stdio.h>void fac(char ch=getchar()){ if(ch!='\n'){ fac(ch=getchar()); printf("%c",ch); }}void main(){ char ch; printf("输入一行字符串\n"); fac(ch=getchar()); printf("%c\n",ch);}
#include "stdio.h"#include "stdlib.h"#define N 3struct student{ char num[6]; char name[10]; int score[3]; float average;}stu[N];int main(void){ void print(struct student stu[10]); int i,j; for(i=0;i<N;i++) { printf("in...
#include<stdio.h> void main() { printf("input a sentence \n"); char a[80],*p; int i=0,lowercase=0,uppercase=0,space=0,tab=0,enter=0; printf("ps: input ctrl+z to end of the input and press enter to show the result\n"); printf("=====================================\n"); while(1) { if((a[i]=getcha...
终于找到组织了,很是兴奋啊!
希望大家能支持我,一起学习啊!支持,支持,支持!