리그오브레전드리그오브레전드

온라인 477

c언어로 옵지 만들기

조회수 658댓글 7추천 9

캡처33.PNG

캡처fdzz.PNG

include \

include \

include \

void odd_adder(double a, int b, double c) { c = a / b * 100; }

struct kda { short kill, assist, death; };

struct time { int hour, minute, second; };

struct item { char spell1[30]; char spell2[30]; char item1[100]; char item2[100]; char item3[100]; char item4[30] = "귀환"; char item5[100]; char item6[100]; char item7[100]; char ward[100]; };

struct integrate { kda x; time y; item z; int cs; char char_name[100]; char game_name[100]; char user_name[100] = "공기팡팡팡"; short days; short win; };

int main() { integrate a; integrate b;

a.days = 24; a.x.kill = 10; a.x.assist = 1; a.x.death = 2; a.y.minute = 15; a.y.second = 41; strcpy(a.game_name, "일반"); strcpy(a.char_name, "탈론");

a.cs = 46; a.win = 0; strcpy(a.z.item1, "티아맷"); strcpy(a.z.item2, "충전형 물약"); strcpy(a.z.item3, "톱날 단검"); strcpy(a.z.item5, "기동력의 장화"); strcpy(a.z.item6, "콜필드의 전투 망치"); strcpy(a.z.item7, "롱소드"); strcpy(a.z.spell1, "점멸"); strcpy(a.z.spell2, "점화"); strcpy(a.z.ward, "와드 토템");

b.days = 15; b.x.kill = 5; b.x.death = 0; b.x.assist = 1; b.y.minute = 15; b.y.second = 31; strcpy(b.game_name, "일반"); strcpy(b.char_name, "탈론");

b.cs = 89; b.win = 0; strcpy(b.z.item1, "티아맷"); strcpy(b.z.item2, "기동력의 장화"); strcpy(b.z.item3, "톱날 단검"); strcpy(b.z.item5, "콜필드의 전투 망치"); strcpy(b.z.item6, "충전형 물약"); strcpy(b.z.ward, "와드 토템"); strcpy(b.z.spell1, "점멸"); strcpy(b.z.spell2, "점화"); double odds, all_game = 2, talon = 2; odd_adder(all_game, talon, &odds);

printf("\nOP.GG\t%s\n\n%s : %lf%%\n\n--------------------------------\n\n", a.user_name, a.char_name, odds);

printf("%s   %s   %d / %d / %d   %s  %s  %s  %s\n", a.game_name, a.char_name, a.x.kill, a.x.death, a.x.assist, a.z.item1, a.z.item2, a.z.item3, a.z.item4); printf("%d시간 전   %dcs\n", a.days, a.cs); printf("%d분 %d초   %s / %s    %s  %s  %s  %s \n--------------------------------\n\n", a.y.minute, a.y.second, a.z.spell1, a.z.spell2, a.z.item5, a.z.item6, a.z.item7, a.z.ward); printf("%s   %s   %d / %d / %d   %s  %s  %s  %s\n", b.game_name, b.char_name, b.x.kill, b.x.death, b.x.assist, b.z.item1, b.z.item2, b.z.item3, b.z.item4); printf("%d시간 전   %dcs\n", b.days, b.cs); printf("%d분 %d초   %s / %s        %s  %s  %s  %s \n", b.y.minute, b.y.second, b.z.spell1, b.z.spell2, b.z.item5, b.z.item6, b.z.item7, b.z.ward);

_sleep(100000000000); return 0; }


ㄹㅇㅋㅋ

댓글