Add xeinit7.cpp

This commit is contained in:
daleclack 2020-12-15 22:23:33 +08:00
parent 6c4fb7f0f2
commit c9ec7f07cd
1 changed files with 12 additions and 0 deletions

12
cpp/xeinit7.cpp Normal file
View File

@ -0,0 +1,12 @@
#include <iostream>
#include <cstdio>
#include <cstdlib>
int main(int argc,char *argv[])
{
int x;
srand((unsigned)time(NULL));
x=rand();
std::cout<<x<<" "<<x%2<<std::endl;
return 0;
}