VioletaBabel
입력한 문자열을 색을 바꿔 그대로 출력12345678910111213141516171819202122232425262728293031323334353637383940414243#include#include#includeusing namespace std;/* 배경은 16 * 배경컬러숫자 + 글자컬러숫자 Black = 0, Blue, Green, Jade, //옥색 Red, Purple = 5, Yellow, White, Gray, SoftBlue, SoftGreen = 10, SoftJade, SoftRed, SoftPurple, SoftYellow, DeepWhite = 1615*/void Pr(WORD w, const char s);int main(){ string s; getline(cin, s);..
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798#includeusing namespace std;struct Data{ int value; Data* pNext;};int main(){ Data *pHead = NULL, *pTemp, *pTemp2; int com = 0; bool in = 0; while (1) { cout com; if (com == 1) { cout com; Data *pNewData = new D..
123456789#includeusing namespace std;int main(){ //변수의 메모리 주소 출력 int a; a = 5; cout
12345678910111213141516171819202122#includeint main(){ int a; scanf("%d", &a); for (int i = a; i>0;--i) { for (int j = a - i; j > 0; --j) printf(" "); for (int j = i * 2 - 1; j>0; --j) printf("*"); printf("\n"); } for (int i = 2; i 0; --j) printf(" "); for(int j = i*2-1; j > 0; --j) printf("*"); printf("\n"); }}Colored by Color Scriptercs
123456789101112131415161718#include#includeint main(){ int num[101][101], sum = 0; std::fill_n(&num[0][0], 101 * 101, 0); for (int i = 0, x1, y1, x2, y2; i++
12345678910#includeusing namespace std;int main(){ //a와 b를 입력받아 b줄에 a만큼 *을 출력 int a, b; cin >> a >> b; for (int i = 0; i++
123456789101112131415161718192021222324#include#includeusing namespace std;int main(){ bool a = 0; int n; string name[51]; cin >> n; for (int i = 0; i > name[i]; for (int i = 0; i
123456789101112131415161718192021#includeusing namespace std;int main(){ int t, x1, x2, y1, y2, ryu, jobaek, jobaek2, r1, r2; for (scanf("%d", &t); t--; printf("\n")) { scanf("%d %d %d %d %d %d", &x1, &y1, &r1, &x2, &y2, &r2); ryu = (x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2); jobaek = (r1 + r2)*(r1 + r2); jobaek2 = (r1 - r2)*(r1 - r2); if (x1 == x2 && y1 == y2 && r1 == r2) printf("-1"); else if (..
1234567891011121314151617181920212223242526272829303132333435363738#include#includeusing namespace std;void dfs(bool(*pnt)[1001], int x, int n);int main(){ bool pnt[1001][1001]; for (int i = 0; i
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748#includeusing namespace std;void cnt(int y, int x, int n, char(*c)[101], char h);int dx[4] = { -1,0,1,0 };int dy[4] = { 0,1,0,-1 };int main(){ int n, ans[2] = { 0,0 }; char c1[100][101], c2[100][101]; scanf("%d", &n); for (int i = 0; i