ÃÑ ÆäÀÌÁö ¼ö : 3224
![]()
|
Facebook Joinc ±×·ì
Joinc QA »çÀÌÆ®
![]()
Tweet
joinc´Â Firefox¿Í chrome¿¡¼ Å×½ºÆ® Çß½À´Ï´Ù. IE¿¡¼´Â Å×À̺íÀÌ ±úÁö°Å³ª À̹ÌÁö°¡ º¸ÀÌÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ƯÈ÷ ±¸±Û DocsÀ̹ÌÁöÀÇ °æ¿ì ¿¢¹Úó¸®µÉ ¼ö ÀÖ½À´Ï´Ù. ¼³¸í
random_read2¸¦ ÀÌ¿ëÇÑ ·Î¶Ç ¹øÈ£ »ý¼º±âÀÔ´Ï´Ù. STLÀÇ setÀ» »ç¿ëÇØ¼ Áߺ¹µÈ °ªÀ» Á¦°ÅÇß½À´Ï´Ù. »ç¿ë¹æ¹ý#include "myrand.h" // random_read2()ÇÔ¼ö ¼±¾ð using namespace std; int main() { lotte(); } ÄÚµå#include <unistd.h> #include <stdio.h> #include <string.h> #include <set> #include <vector> #include "myrand.h" void lotto() { int myvalue; set<int> rbuf; vector<int> lotto; int i = 1; int seed; cout << "JOINCÇ¥ ·Î¶Ç ¹øÈ£ »ý¼º±â !!!" << endl; cout << "´ë¹ÚÀÇ ²ÞÀº ÀÌ·ç¾îÁø´Ù !!!\n" << endl; while(1) { getrandom((void *)&myvalue, 4); seed = (myvalue%46) + 1; if (rbuf.find(seed) == rbuf.end()) { rbuf.insert(seed); cout << i << " : " << seed << endl; i++; } if (rbuf.size() == 6) { break; } } cout << "\n<´ç÷ È®·ü : ´ë·« 1/9000000>" <<endl; } º¯°æ»çÇ×
|
|
|
EmailÀ» ±âÀÔÇϸé, ´ñ±ÛÀÌ ¸ÞÀÏ·Î Àü´ÞµË´Ï´Ù. |
|