본문 바로가기

전체 글378

문자열함수 #include #include // #include using namespace std;//< 문자열 길이 구하는 함수 //size_t strlen( const char * _Str);// ( unsigned int ) == size_t//< 매개변수로 문자형 포인터 하나를 받아서 //< 길이를 반환한다.unsigned int Mystrlen( const char* pStr );//< 복사하는//char * strcpy(char* _Dest, const char *_Source);// int strcpy_s(char * _Dst, unsigned int _SizeInBytes, const char * _Src);// strncpy( 용도 파악 )char*MyStrcpy( char* pDest, cons.. 2013. 2. 20.
if문을 이용한 가위바위보게임 if else 문만을 이용하여 만든 가위 바위보 게임#include#include #include using namespace std;-- ::가위 바위보 게임:: 컴퓨터와 유저간의 게임 --#define col GetStdHandle(STD_OUTPUT_HANDLE) // 콘솔창의 핸들정보 받기#define YEL SetConsoleTextAttribute( col, 0x000e); //노란색 #define SKY SetConsoleTextAttribute( col, 0x000b); //하늘색#define HIGH SetConsoleTextAttribute( col,0x00a); // 연두int main(void){int Money=0;//유저머니 int bettingMoney=0;//배팅 금액int .. 2013. 2. 20.
구구단(옆으로 출력하기) #include; using namespace std; int main(void){int i,j,k;for (i=1;i 2013. 2. 20.
여러가지 별모양 찍기 #include using namespace std;int main(void){cout 2013. 2. 20.
성적표 구현(무배열) 배열을 사용하지않고 구현함으로써 설계와 일치 하지않는다.#include#include #includeusing namespace std;int main(void){cout 2013. 2. 20.
로또 생성기 -**********************************************************************---- 로또 번호 생성 제작_김광성유저가 입력한 숫자 혹은 자동으로 생성된 번호를생성된 로또 번호와 체크하여 결과를 출력해준다.----**********************************************************************--#include #include#include#includeusing namespace std;-- 로또번호에 사용될 변수들을 전역으로 선언 --int GUserL_1=0,GUserL_2=0,GUserL_3=0,GUserL_4=0,GUserL_5=0,GUserL_6=0,GUserL_7=0;//유저의 로또번호int GLo.. 2013. 2. 20.