久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2341|回復: 0
收起左側

字符串認識

[復制鏈接]
ID:51090 發表于 2014-9-17 14:36 | 顯示全部樓層 |閱讀模式


#include<stidio.h>

#define MSG "You must have many talents. Tell me something."
#define LIM 5
#define LINELEN 81

int main (void)
{
char name[LINELEN];
char talents[LINELEN];  //這兩個為字符變量數組的定義,前面的const就是一種定義模式,放在這個位置與首位置意思一樣,分號不可以少
int i;
const char m1[40] = "Limit yourself to one line's worth";
const char m2[ ] = "If you can't think of anything fake it";
const char *m3 = "\nEnough about me-what's your name?"; //指針的方法,這樣寫相當于首字母的地址被表示進行就可以了

const char *mytal[LIM] = {
        "Adding number swiftly",
        "Multiply accurately",
        "Stashing date",
        "Following instructions to the letter",
        "Understanding the C language",
        }; //與for語句的配合注意
printf ("Hi! I'm Clyde the Computer." "I have many talents");
printf ("Let me tell your some of them.\n");
puts ("What were they? Ah,yes,here's a partial list.");
for (i=0; i
  puts(mytal[i]);
puts(m3);  //輸入
gets(name);  //輸出
prinf ("Well,%s,%s\n",name, MSG);
printf ("%s\n%s\n",m1,m2);
gets(talents);
puts("Let's see if l've got that list:");
puts(talents);
printf("Thanks for the information.%s\n",name);
return 0;
}


回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 精品视频免费观看 | 国内自拍一区 | 国产三级在线观看视频 | 国产三级在线播放 | 国产二区精品 | 午夜av网站| 国产黄色在线观看 | 欧美日韩免费看 | 午夜影院在线 | 国产一区二区不卡视频 | 午夜在线观看免费视频 | 蜜臀久久99精品久久久久宅男 | 国产在线黄色 | 国产伦精品一区二区三区视频网站 | 天天看天天干 | 亚洲少妇视频 | 视频在线一区二区 | 日日夜夜天天干 | 日韩免费视频 | 伊人精品在线 | 免费看a| 黄色在线观看免费 | 欧美日韩中文字幕在线观看 | 午夜男人影院 | 国产福利在线视频 | 色综合久 | 日韩欧美自拍 | 天天爽夜夜操 | 国内福利视频 | 日本免费黄色网址 | 少妇中文字幕 | 四川一级毛毛片 | 国产美女毛片 | 中文字幕亚洲一区 | 国产精品尤物 | 欧美一级免费 | 久久精品美女 | 亚洲国产精品一区 | www.色综合 | 欧美黄网站 | 亚洲第一黄色 |