icodding愛程式
程式語言、網際網路、作業系統、資料庫系統、資訊安全、各種免費軟體、開放原碼、開源軟體等技術介紹、分享與推廣。
網頁
首頁
Ubuntu
CentOS
Linux
Windows Server 相關
PHP
RWD
jQuery Mobile
CSS3
HTML5
JQuery
JavaScript
資料庫相關
java 相關
nsis 相關
drupal
C/C++教學
軟體測試
python
raspberry pi
Arduino
python-tensorflow
其他
C語言
2018年5月18日 星期五
c語言-無限迴圈用法 for and while
#include<stdlib.h>
#include<stdio.h>
#include<windows.h>
int main()
{
int a;
//for( ; ; ) //for的用法
while(1)//while的用法
{
a = (rand()%100)+1;
printf("%d\n", a);
printf("forver loop!\n");
Sleep(1);
}
return 0;
}
沒有留言:
張貼留言
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言