昆仑山:眼中无形心中有穴之穴人合一

夫君子之行,静以修身,俭以养德;非澹泊无以明志,非宁静无以致远。夫学须静也,才须学也;非学无以广才,非志无以成学。怠慢则不能励精,险躁则不能冶性。年与时驰,意与岁去,遂成枯落,多不接世。悲守穷庐,将复何及!

 

C语言随机数rand()和srand()使用

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main() {
    int a = rand();
    printf("%d", a);
    putchar(10);

    int b;
    srand((unsigned) time(NULL));
    b = rand();
    printf("%d\t", b);
    return 0;
}






posted on 2020-10-23 13:43  Indian_Mysore  阅读(59)  评论(0)    收藏  举报

导航