日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

C语言必背18个经典程序

發(fā)布時間:2023/12/10 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 C语言必背18个经典程序 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

1、/*輸出9*9口訣。共9行9列,i控制行,j控制列。*/

#include “stdio.h”

main()

{int i,j,result;

for(i=1;i<10;i++)

{for(j=1;j<10;j++)

{

result=i*j;

printf(“%d*%d=%-3d”,i,j,result);/*-3d表示左對齊,占3位*/

}

printf(“\n”);/*每一行后換行*/

}

}

2、/*古典問題:有一對兔子,從出生后第3個月起每個月都生一對兔子,小兔子長到第三個月后每個月又生一對兔子,假如兔子都不死,問每個月的兔子總數(shù)為多少?
兔子的規(guī)律為數(shù)列1,1,2,3,5,8,13,21….*/

main()

{

long f1,f2;

int i;

f1=f2=1;

for(i=1;i<=20;i++)

{ printf(“%12ld%12ld”,f1,f2);

if(i%2==0) printf(“\n”);/*控制輸出,每行四個*/

f1=f1+f2;/*前兩個月加起來賦值給第三個月*/

f2=f1+f2; /*前兩個月加起來賦值給第三個月*/

}

}

3、/*判斷101-200之間有多少個素數(shù),并輸出所有素數(shù)及素數(shù)的個數(shù)。
程序分析:判斷素數(shù)的方法:用一個數(shù)分別去除2到sqrt(這個數(shù)),如果能被整除,
     則表明此數(shù)不是素數(shù),反之是素數(shù)。*/

#include “math.h”

main()

{

intm,i,k,h=0,leap=1;

printf(“\n”);

for(m=101;m<=200;m++)

{k=sqrt(m+1);

for(i=2;i<=k;i++)

if(m%i==0)

{leap=0;break;}

if(leap) /*內(nèi)循環(huán)結(jié)束后,leap依然為1,則m是素數(shù)*/

{printf(“%-4d”,m);h++;

if(h%10==0)

printf(“\n”);

}

leap=1;

}

printf(“\nThetotal is %d”,h);

}

4、/*一個數(shù)如果恰好等于它的因子之和,這個數(shù)就稱為“完數(shù)”。例如6=1+2+3.編程
   找出1000以內(nèi)的所有完數(shù)。*/

main()

{

static int k[10];

inti,j,n,s;

for(j=2;j<1000;j++)

{

n=-1;

s=j;

for(i=1;i<j;i++)

{if((j%i)==0)

{ n++;

s=s-i;

k[n]=i;

}

}

if(s==0)

{printf(“%d is a wanshu: “,j);

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

printf(“%d,”,k[i]);

printf(“%d\n”,k[n]);

}

}

}

5、/*下面程序的功能是將一個4×4的數(shù)組進行逆時針旋轉(zhuǎn)90度后輸出,要求原始數(shù)組的數(shù)據(jù)隨機輸入,新數(shù)組以4行4列的方式輸出,
請在空白處完善程序。*/

main()

{ int a[4][4],b[4][4],i,j; /*a存放原始數(shù)組數(shù)據(jù),b存放旋轉(zhuǎn)后數(shù)組數(shù)據(jù)*/

printf(“input 16 numbers: “);

/*輸入一組數(shù)據(jù)存放到數(shù)組a中,然后旋轉(zhuǎn)存放到b數(shù)組中*/

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

for(j=0;j<4;j++)

{ scanf(“%d”,&a[i][j]);

b[3-j][i]=a[i][j];

}

printf(“arrayb:\n”);

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

{ for(j=0;j<4;j++)

printf(“%6d”,b[i][j]);

printf(“\n”);

}

}

6、/*編程打印直角楊輝三角形*/

main()

{int i,j,a[6][6];

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

{a[i][i]=1;a[i][0]=1;}

for(i=2;i<=5;i++)

for(j=1;j<=i-1;j++)

a[i][j]=a[i-1][j]+a[i-1][j-1];

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

{for(j=0;j<=i;j++)

printf(“%4d”,a[i][j]);

printf(“\n”);}

}

7、/*通過鍵盤輸入3名學生4門課程的成績,
分別求每個學生的平均成績和每門課程的平均成績。
要求所有成績均放入一個4行5列的數(shù)組中,輸入時同一人數(shù)據(jù)間用空格,不同人用回車
其中最后一列和最后一行分別放每個學生的平均成績、每門課程的平均成績及班級總平均分。*/

#include <stdio.h>

#include <stdlib.h>

main()

{ float a[4][5],sum1,sum2;

inti,j;

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

for(j=0;j<4;j++)

scanf(“%f”,&a[i][j]);

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

{sum1=0;

for(j=0;j<4;j++)

sum1+=a[i][j];

a[i][4]=sum1/4;

}

for(j=0;j<5;j++)

{ sum2=0;

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

sum2+=a[i][j];

a[3][j]=sum2/3;

}

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

{ for(j=0;j<5;j++)

printf(“%6.2f”,a[i][j]);

printf(“\n”);

}

}

8、/*完善程序,實現(xiàn)將輸入的字符串反序輸出,

如輸入windows 輸出swodniw。*/

#include <string.h>

main()

{ char c[200],c1;

int i,j,k;

printf(“Enter a string: “);

scanf(“%s”,c);

k=strlen(c);

for (i=0,j=k-1;i<k/2;i++,j–)

{ c1=c[i];c[i]=c[j];c[j]=c1; }

printf(“%s\n”,c);

}

指針法:

void invert(char *s)

{int i,j,k;

char t;

k=strlen(s);

for(i=0,j=k-1;i<k/2;i++,j–)

{ t=*(s+i); *(s+i)=*(s+j); *(s+j)=t; }

}

main()

{FILE *fp;
char str[200],*p,i,j;
if((fp=fopen(“p9_2.out”,”w”))==NULL)
{ printf(“cannot open thefile\n”);
exit(0);
}

printf(“input str:\n”);

gets(str);

printf(“\n%s”,str);

fprintf(fp,“%s”,str);

invert(str);

printf(“\n%s”,str);

fprintf(fp,“\n%s”,str);

fclose(fp);

}

9、/*下面程序的功能是從字符數(shù)組s中刪除存放在c中的字符。*/

#include <stdio.h>

main()

{ char s[80],c;

int j,k;

printf(“\nEnter a string: “);

gets(s);

printf(“\nEnter a character: “);

c=getchar( );

for(j=k=0;s[j]!= ‘\0’;j++)

if(s[j]!=c)

s[k++]=s[j];

s[k]=’\0’;

printf(“\n%s”,s);

}

10、/*編寫一個voidsort(int *x,int n)實現(xiàn)將x數(shù)組中的n個數(shù)據(jù)從大到小
排序。n及數(shù)組元素在主函數(shù)中輸入。將結(jié)果顯示在屏幕上并輸出到文件p9_1.out中*/

#include<stdio.h>

void sort(int *x,int n)

{

int i,j,k,t;

for(i=0;i<n-1;i++)

{

k=i;

for(j=i+1;j<n;j++)

if(x[j]>x[k]) k=j;

if(k!=i)

{

t=x[i];

x[i]=x[k];

x[k]=t;

}

}

}

void main()

{FILE *fp;

int *p,i,a[10];

fp=fopen(“p9_1.out”,”w”);

p=a;

printf(“Input 10 numbers:”);

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

scanf(“%d”,p++);

p=a;

sort(p,10);

for(;p<a+10;p++)

{ printf(“%d “,*p);

fprintf(fp,”%d “,*p); }

system(“pause”);

fclose(fp);

}

11、已知數(shù)組a中的元素已按由小到大順序排列,以下程序的功能是將輸入的一個數(shù)插入數(shù)組a中,插入后,數(shù)組a中的元素仍然由小到大順序排列*/

main()

{ inta[10]={0,12,17,20,25,28,30}; /*a[0]為工作單元,從a[1]開始存放數(shù)據(jù)*/

int x , i, j=6; /*j為元素個數(shù)*/

printf(“Enter a number: “);

scanf(“%d”,&x);

a[0]=x;

i=j; /*從最后一個單元開始*/

while(a[i]>x)

{ a[i+1]=a[i]; i–; } /*將比x大的數(shù)往后移動一個位置*/

a[++i]=x;

j++; /*插入x后元素總個數(shù)增加*/

for(i=1;i<=j;i++) printf(“%8d”,a[i]);

printf(“\n”);

}

12、/*編寫函數(shù)replace(char *s,char c1,char c2)實現(xiàn)將s所指向的字符串中所有字符c1用c2替換,字符串、字符c1和c2均在主函數(shù)中輸入,將原始字符串和替換后的字符串顯示在屏幕上,并輸出到文件p10_2.out中*/

#include<stdio.h>

replace(char*s,char c1,char c2)

{while(*s!=’\0’)

{ if(*s==c1)

*s=c2;

s++;

}

}

main()

{ FILE *fp;

char str[100],a,b;

if((fp=fopen(“p10_2.out”,”w”))==NULL)

{ printf(“cannot open thefile\n”);

exit(0); }

printf(“Enter a string:\n”);

gets(str);

printf(“Enter a&&b:\n”);

scanf(“%c,%c”,&a,&b);

printf(“%s\n”,str);

fprintf(fp,”%s\n”,str);

replace(str,a,b);

printf(“Thenew string is—-%s\n”,str);

fprintf(fp,”Thenew string is—-%s\n”,str);

fclose(fp);

}

13、/*在一個字串s1中查找一子串s2,若存在則返回子串在主串中的起始位置
,不存在則返回-1。*/

main()

{chars1[6]=”thisis”;char s2[5]=”is”;

printf(“%d\n”,search(s1,s2));

system(“pause”);

}

int search(chars1[],char s2[])

{inti=0,j,len=strlen(s2);

while(s1[i]){

for(j=0;j<len;j++)

if(s1[i+j]!=s2[j]) break;

if(j>=len)return i;

else i++;

}

return -1;

}

14、/*用指針變量輸出結(jié)構(gòu)體數(shù)組元素。*/

struct student

{

int num;

char *name;

char sex;

int age;

}stu[5]={{1001,”lihua”,’F’,18},{1002,”liuxing”,’M’,19},{1003,”huangke”,’F’,19},{1004,”fengshou”,’F’,19},{1005,”Wangming”,’M’,18}};

main()

{int i;

struct student *ps;

printf(“Num \tName\t\t\tSex\tAge\t\n”);

/*用指針變量輸出結(jié)構(gòu)體數(shù)組元素。*/

for(ps=stu;ps<stu+5;ps++)

printf(“%d\t%-10s\t\t%c\t%d\t\n”,ps->num,ps->name,ps->sex,ps->age);

/*用數(shù)組下標法輸出結(jié)構(gòu)體數(shù)組元素學號和年齡。*/

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

printf(“%d\t%d\t\n”,stu[i].num,stu[i].age);

}

15、/*建立一個有三個結(jié)點的簡單鏈表:*/

#define NULL 0

struct student

{

int num;

char *name;

int age ;

struct student*next;

};

void main()

{

struct studenta,b,c,*head,*p;

a.num=1001;a.name=”lihua”; a.age=18; /* 對結(jié)點成員進行賦值 */

b.num=1002;b.name=”liuxing”; b.age=19;

c.num=1003;c.name=”huangke”; c.age=18;

head=&a; /* 建立鏈表,a為頭結(jié)點 */

a.next=&b;

b.next=&c;

c.next=NULL;

p=head; /* 輸出鏈表 */

do{

printf(“%5d,%s,%3d\n”,p->num,p->name,p->age);

p=p->next;

}while(p!=NULL);

}

16、/*輸入一個字符串,判斷其是否為回文。回文字符串是指從左到右讀和從右到左讀完全相同的字符串。*/

#include<stdio.h>

#include<string.h>

#include<string.h>

main()

{ char s[100];

int i,j,n;

printf(“輸入字符串:\n”);

gets(s);

n=strlen(s);

for(i=0,j=n-1;i<j;i++,j–)

if(s[i]!=s[j]) break;

if(i>=j) printf(“是回文串\n”);

else printf(“不是回文串\n”);

}

17、/*冒泡排序,從小到大,排序后結(jié)果輸出到屏幕及文件myf2.out*/

#include<stdio.h>

void fun(inta[],int n)

{int i,j,t;

for(i=0;i<=n-1;i++)

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

if(a[j]>a[j+1]){t=a[j];a[j]=a[j+1];a[j+1]=t;}

}

main()

{inta[10]={12,45,7,8,96,4,10,48,2,46},n=10,i;

FILE *f;

if((f=fopen(“myf2.out”,”w”))==NULL)

printf(“open file myf2.outfailed!\n”);

fun(a,10);

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

{printf(“%4d”,a[i]);

fprintf(f,”%4d”,a[i]);

}

fclose(f);

}

18、編寫函數(shù)countpi,利用公式

計算π的近似值,當某一項的值小于10-5時,認為達到精度要求,請完善函數(shù)。將結(jié)果顯示在屏幕上并輸出到文件p7_3.out中。

#include<stdio.h>

doublecountpi(double eps) /*eps為允許誤差*/

{

int m=1;

double temp=1.0,s=0;

while(temp>=eps)

{ s+=temp;

temp=temp*m/(2*m+1);

m++;

}

return(2*s);

}

main()

{FILE *fp;

double eps=1e-5,pi;

if((fp=fopen(“p7_3.out”,”w”))==NULL)

{ printf(“cannot open thefile\n”);

exit(0);

}

pi= countpi(eps);

printf(“pi=%lf\n”,pi);

fprintf(fp,”pi=%lf\n”,pi);

fclose(fp);

}

</div> </article><div class="readall_box csdn-tracking-statistics" data-mod="popu_376"><div class="read_more_mask"></div><a class="btn btn-large btn-gray-fred read_more_btn" target="_self">閱讀全文</a></div><div class="article_copyright">版權聲明:開放 </div><ul class="article_collect clearfix csdn-tracking-statistics" data-mod="popu_378"><li class="tit">本文已收錄于以下專欄:</li>












<div class="more_comment"><div id="comment_bar" class="trackgin-ad" data-mod="popu_385"></div></div><h3 class="recommend_tit" id="related">相關文章推薦</h3><div class="recommend_list clearfix" id="rasss"><dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed" data-feed-show="false" data-dsm="post"><dd><h2><a href="http://blog.csdn.net/21aspnet/article/details/1540005" target="_blank" strategy="BlogCommendFromBaidu_0">C語言100個經(jīng)典的算法</a></h2><div class="summary">POJ上做做ACM的題語言的學習基礎,100個經(jīng)典的算法C語言的學習要從基礎開始,這里是100個經(jīng)典的算法-1C語言的學習要從基礎開始,這里是100個經(jīng)典的算法題目:古典問題:有一對兔子,從出生后第3... </div><ul><li class="avatar_img"><a href="http://blog.csdn.net/21aspnet" target="_blank" strategy="BlogCommendFromBaidu_0"><img src="http://avatar.csdn.net/D/3/E/3_21aspnet.jpg" alt="21aspnet" title="21aspnet"></a></li><li class="user_name"><a href="http://blog.csdn.net/21aspnet">21aspnet</a></li><li class="time">2007年03月24日 17:00</li><li class="visited_num"><i class="icon iconfont icon-read"></i><span>68285</span></li></ul></dd></dl><dl class="clearfix csdn-tracking-statistics downloadElement" data-mod="popu_387" data-poputype="feed" data-feed-show="false" data-dsm="post"><dt><a href="http://download.csdn.net/download/chenxh/3" target="_blank" strategy="BlogCommendFromBaidu_1"><img class="maxwidth" src="http://csdnimg.cn/release/download/old_static/images/minetype/zip.svg" alt="" title=""></a></dt><dd><div class="summary"><h2><a href="http://download.csdn.net/download/chenxh/3" target="_blank" strategy="BlogCommendFromBaidu_1">Delphi7高級應用開發(fā)隨書源碼</a></h2><div class="summary"><ul><li class="time">2003年04月30日 00:00</li><li class="visited_num fileSize">676KB</li><li class="download_btn"><a href="http://download.csdn.net/download/chenxh/3" target="_blank">下載</a></li></ul></div></div></dd></dl><script>(function() {var s = "_" + Math.random().toString(36).slice(2);document.write('<div id="' + s + '"></div>');(window.slotbydup=window.slotbydup || []).push({id: '4765209',container: s,size: '808,120',display: 'inlay-fix'});})();</script><dl class="clearfix csdn-tracking-statistics downloadElement" data-mod="popu_387" data-poputype="feed" data-feed-show="false" data-dsm="post"><dt><a href="http://download.csdn.net/download/chenxh/3" target="_blank" strategy="BlogCommendFromBaidu_2"><img class="maxwidth" src="http://csdnimg.cn/release/download/old_static/images/minetype/zip.svg" alt="" title=""></a></dt><dd><div class="summary"><h2><a href="http://download.csdn.net/download/chenxh/3" target="_blank" strategy="BlogCommendFromBaidu_2">Delphi7高級應用開發(fā)隨書源碼</a></h2><div class="summary"><ul><li class="time">2003年04月30日 00:00</li><li class="visited_num fileSize">676KB</li><li class="download_btn"><a href="http://download.csdn.net/download/chenxh/3" target="_blank">下載</a></li></ul></div></div></dd></dl><dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed" data-feed-show="false" data-dsm="post"><dd><h2><a href="http://blog.csdn.net/sinat_32829711/article/details/55103599" target="_blank" strategy="BlogCommendFromBaidu_3">C語言程序設計經(jīng)典50例</a></h2><div class="summary">【程序1】

題目:有1、2、3、4個數(shù)字,能組成多少個互不相同且無重復數(shù)字的三位數(shù)?都是多少?
解答:

#include int main() { int i,j,k,n=0; for(…
  • sinat_32829711
  • 2017年02月14日 18:19
  • 217

Delphi7高級應用開發(fā)隨書源碼

  • 2003年04月30日 00:00
  • 676KB
  • 下載
(function() { var s = "_" + Math.random().toString(36).slice(2); document.write(' '); (window.slotbydup=window.slotbydup || []).push({ id: '4983339', container: s, size: '808,120', display: 'inlay-fix' }); })();

C語言18個經(jīng)典小程序(二)

7、/*通過鍵盤輸入3名學生4門課程的成績, 分別求每個學生的平均成績和每門課程的平均成績。 要求所有成績均放入一個4行5列的數(shù)組中,輸入時同一人數(shù)據(jù)間用空格,不同人用回車 其中最后一列和最后…
  • jiajia4336
  • 2013年03月12日 09:09
  • 4184

C語言必背18個經(jīng)典程序

1、/*輸出9*9口訣。共9行9列,i控制行,j控制列。*/
#include “stdio.h” main() {int i,j,result; for(i=1;i {for(j=…
  • u012505695
  • 2014年12月04日 13:57
  • 792

Delphi7高級應用開發(fā)隨書源碼

  • 2003年04月30日 00:00
  • 676KB
  • 下載

Delphi7高級應用開發(fā)隨書源碼

  • 2003年04月30日 00:00
  • 676KB
  • 下載

C語言18個經(jīng)典小程序(二)

7、/*通過鍵盤輸入3名學生4門課程的成績, 分別求每個學生的平均成績和每門課程的平均成績。 要求所有成績均放入一個4行5列的數(shù)組中,輸入時同一人數(shù)據(jù)間用空格,不同人用回車 其中最后一列和最后…
  • jiajia4336
  • 2013年03月12日 09:09
  • 4184

sakawa_x

+關注
原創(chuàng)
248
粉絲
9
喜歡
0
碼云

他的最新文章

更多文章
  • 過濾CString字符串中各位是數(shù)字,大小寫字母,符號,漢字
  • 精煉正則表達
  • printf輸出重定向到文件中
  • WTL – 常用功能
  • Windows – Qt不能進行調(diào)試 – Unknown debugger type "No Engine"

相關推薦

  • C語言100個經(jīng)典的算法
  • Delphi7高級應用開發(fā)隨書源碼 7076
  • Delphi7高級應用開發(fā)隨書源碼 7076
  • C語言程序設計經(jīng)典50例
(function() { var s = “_” + Math.random().toString(36).slice(2); document.write(‘‘); (window.slotbydup=window.slotbydup || []).push({ id: ‘5384130’, container: s, size: ‘300,300’, display: ‘inlay-fix’ }); })(); (function() { var s = “_” + Math.random().toString(36).slice(2); document.write(‘‘); (window.slotbydup=window.slotbydup || []).push({ id: ‘4770930’, container: s, size: ‘300,250’, display: ‘inlay-fix’ }); })();

他的熱門文章

  • linux下 如何切換到root用戶 18996
  • linux下安裝 Sublime Text 3 6336
  • C語言必背18個經(jīng)典程序 4571
  • linux下安裝chrome 3066
  • ubuntu 打不開商店怎么辦 2664
  • 0
內(nèi)容舉報 返回頂部 收藏助手 src="" id="collectIframe" width="100%" height="360" scrolling="no"> 不良信息舉報 舉報原因:原文地址:原因補充:
您舉報文章:C語言必背18個經(jīng)典程序
色情 政治 抄襲 廣告 招聘 罵人
其他

(最多只允許輸入30個字)

<script language="javascript" type="text/javascript">var isComment=0;//顯示隱藏地址$(function () {console.log("version:phoenix");if(isComment){$("#report_description").attr("disabled",true);$("#sp_n").hide();$("#sp_reason").html("評論內(nèi)容:");}$(".report_type").click(function () {$("#panel_originalurl,#report_other_content").hide();switch ($(this).val()) {case '3':$("#panel_originalurl").show();$("#originalurl").focus();break;case '7':if(isComment){$("#report_other_content").show().focus();}break;}});$("#frmReport").submit(function () {if (!currentUserName) {if (confirm("您的操作必須登錄,是否登錄?")) {location.href = "http://passport.csdn.net/account/login?from=" + encodeURIComponent(location.href);return false;}return false;}var reportType = $("input[name=report_type]:checked").val();if(!reportType){alert("請選擇舉報原因!");return false;}var otherInfo = "";switch (reportType) {case '3':otherInfo = $("#originalurl").val();if (otherInfo == ""||otherInfo=="http://") {alert("舉報抄襲必須提供原創(chuàng)文章地址!");$("#originalurl").focus();return false;} else if(!checkeURL(otherInfo)) {alert("請輸入正確的原創(chuàng)文章地址!");$("#originalurl").focus();return false;}break;case '7':otherInfo = $("#report_other_content").val();if (isComment && !otherInfo) {alert("請?zhí)顚懪e報的具體原因!");$("#report_other_content").focus();return false;}if(!isComment){if(!$("#report_description").val()){alert("請?zhí)顚懪e報的具體原因!");$("#report_description").focus();return false;}}break;}if(!isComment){if($("#report_description").val().length>30){alert("舉報原因最多只允許輸入30個字!");return false;}}nowTime = {year: new Date().getFullYear(),month: parseInt(new Date().getMonth())+1,day: new Date().getDate(),hours: parseInt(new Date().getHours())+1,minutes: parseInt(new Date().getMinutes())+1,seconds: parseInt(new Date().getSeconds())+1};var data = {articleId: fileName,commentId: 0,reportType: reportType,originalurl: $("#originalurl").val(),report_other_content: $("#report_other_content").val(),report_description: $("#report_description").val(),currentUserName: currentUserName,updatetime: nowTime.year+'/'+nowTime.month+'/'+nowTime.day+' '+ nowTime.hours+':'+nowTime.minutes+':'+seconds,blogUser: username};if(!isComment){//如果是舉報文章data.report_other_content = data.report_description;// data.report_description = "1. 神經(jīng)網(wǎng)絡這是一個常見的神經(jīng)網(wǎng)絡的圖:這是一個常見的三層神經(jīng)網(wǎng)絡的基本構(gòu)成,Layer L1是輸入層,Layer L2是隱含層";}$.post(blog_address + "/common/report?id="+fileName+"&t=2", data, function (data) {if (data.result == 1){SetError("感謝您的舉報,我們會盡快審核!");}else{if (data.content) alert(data.content);}});return false;});$("#btnCloseReportDialog").click(function () {CloseDiv();});});//提示后關閉方法function SetError(error) {$("#btnCloseReportDialog").trigger("click");alert(error);CloseDiv();}//關閉方法function CloseDiv() {$.removeMask();$("#report_dialog").hide();return false;}//驗證urlfunction checkeURL(url){return /^http(s)?:\/\/([\w-]+\.)+[\w-]+/i.test(url);} </script>


if( (".articlecollectli").length==1)$(".articlecollect").hide();if((".article_tags li").length==1){ (".article_tags").hide();}(".edit a").attr("href","http://write.blog.csdn.net/postedit/"+fileName); .each((".edu_li a"),function(){ (this).attr("href",(this).attr("href").replace("blog7","blog9"))}); new CNick('#uid').showNickname(); if( ("#fan").html()=="")
????{
????????$("#fan").html(0);
????}




????appendMark(
('.recommend_list').children('a').find('dt'),$('.extension_other'))

總結(jié)

以上是生活随笔為你收集整理的C语言必背18个经典程序的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。