怎样在c语言程序中显示将nice to meet you 变成 nice nice to to meet meet you you

[复制链接]
查看11 | 回复4 | 2013-4-3 18:26:13 | 显示全部楼层 |阅读模式
#include "stdio.h"#include "string.h"void main(){
char *p=NULL;
char *q=NULL;
char a[]="nice to meet you";
char str1[10]={0};
char str2[10]={0};
char str3[10]={0};
char str4[10]={0};
p=strchr(a,' ');
strncpy(str...
回复

使用道具 举报

千问 | 2013-4-3 18:26:13 | 显示全部楼层
程序运行时输入nice to meet you?还是预置好的nice to meet you?我写的是运行时输入的,另一个更简单#include int main...
回复

使用道具 举报

千问 | 2013-4-3 18:26:13 | 显示全部楼层
char szTemp[128];char szOut[64];strcpy(szTemp,"nice to meet you");//可以输入int i = 0;int nFlag = 0;for(i = 0;i#include int main() { char szi[] = "nice to meet you"; char szo[128] = {'\...
回复

使用道具 举报

千问 | 2013-4-3 18:26:13 | 显示全部楼层
#include "stdio.h"//void main(void){
char arry[][10]={"nice","to","meet","you"},i;
for(i=0;i<4;printf("%s %s ",arry[i++],arry));
printf("\n");}...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行