work/c / c++ 썸네일형 리스트형 난수 만들기 (randomize) 출처 : http://forum.falinux.com/zbxe/index.php?document_srl=406196&mid=gcc C 언어에서 난수를 만들려면 rand() 함수를 이용합니다. rand()는 0 부터 RAND_MAX 사이의 난수를 생성합니다. 32bit 리눅스 시스템에서 RAND_MAX값은 2147483647입니다. 즉, int 변수값의 양의 값 최대값입니다.난수 생성에는 rand()일단 예제를 보시겠습니다.#include #include int main( void) { int ndx; printf( "RAND_MAX = %dn", RAND_MAX); for ( ndx = 0; ndx < 5; ndx++) { printf( "%d %dn", ndx, rand()); } return 0; }.. 더보기 cpu성능정보 csourcesearch.net prefs File Information Path: libstatgrab-0.11.1/src/libstatgrab/ Name: cpu_stats.c Lines of Code: 199 Total Lines: 255 File Size: 6.41 kB Package: libstatgrab-0.11.1 /* * i-scream libstatgrab * http://www.i-scream.org * Copyright (C) 2000-2004 i-scream * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public .. 더보기 이전 1 다음