일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- erlang
- QT
- France
- Programming
- agile
- RFID
- management
- Malaysia
- django
- Software Engineering
- web
- Java
- leadership
- programming_book
- history
- Book review
- Artificial Intelligence
- hbase
- Book
- hadoop
- MySQL
- Spain
- Linux
- Kuala Lumpur
- program
- Italy
- ubuntu
- essay
- Python
- comic agile
- Today
- Total
목록Programming (347)
원본: http://mwultong.blogspot.com/2006/10/c-string-replace-all.html #include #include #include char *replaceAll(char *s, const char *olds, const char *news); void main(void){ char s[] = "봉숭아 학당! 봉숭아 학당! 봉숭아 학당! 봉숭아 학당!"; char *s2; printf("원본: %s\n", s); s2 = replaceAll(s, "봉숭아", "맹구"); // 에러가 있으면 NULL 을 리턴. 에러가 없으면 결과 출력 (s2 != NULL) ? printf("치환: %s\n", s2) : fputs("Replace String Error...\n", s..
A certain computer has ten registers and 1,000 words of RAM. Each register or RAM location holds a three-digit integer between 0 and 999. Instructions are encoded as three-digit integers and stored in RAM. The encodings are as follows: 100 means halt 2dn means set register d to n (between 0 and 9) 3dn means add n to register d 4dn means multiply register d by n 5ds means set register d to the va..
Graphical editors such as Photoshop allow us to alter bit-mapped images in the same way that text editors allow us to modify documents. Images are represented as an M x N array of pixels, where each pixel has a given color. Your task is to write a program which simulates a simple interactive graphical editor. Input The input consists of a sequence of editor commands, one per line. Each command i..
A friend of yours has just bought a new computer. Before this, the most powerful machine he ever used was a pocket calculator. He is a little disappointed because he liked the LCD display of his calculator more than the screen on his new computer! To make him happy, write a program that prints numbers in LCD display style. Input The input file contains several lines, one for each number to be di..
The Trip A group of students are members of a club that travels annually to different locations. Their destinations in the past have included Indianapolis, Phoenix, Nashville, Philadelphia, San Jose, and Atlanta. This spring they are planning a trip to Eindhoven. The group agrees in advance to share expenses equally, but it is not practical to share every expense as it occurs. Thus individuals i..
Minesweeper Have you ever played Minesweeper? This cute little game comes with a certain operating system whose name we can't remember. The goal of the game is to find where all the mines are located within a M x N field. The game shows a number in a square which tells you how many mines there are adjacent to that square. Each square has at most eight adjacent squares. The 4 x 4 field on the lef..
ttp://programming-challenges.com/pg.php?page=downloadproblem&probid=110101&format=html Consider the following algorithm to generate a sequence of numbers. Start with an integer n. If n is even, divide by 2. If n is odd, multiply by 3 and add 1. Repeat this process with the new value of n, terminating when n = 1. For example, the following sequence of numbers will be generated for n = 22: 22 11 3..
http://alexgorbatchev.com/wiki/SyntaxHighlighter http://bluenlive.net/494 http://selfinder.tistory.com/8 int main() { return 10; } int main() { return 10; }
출처: 열씨미와 게을러의 리눅스 개발 노하우 탐험기 2009/08/17 - [Programming] - diff, find, md5sum, patch 2009/08/17 - [Programming] - find, grep, ctags, cscope, global 2009/08/17 - [Programming] - shared library, strace, ldconfig, ldd, gcc, strings, od, nm, c++filt, readelf 2009/09/14 - [Programming] - configure 2009/09/21 - [Programming] - 자동화된 빌드 시스템 구축 2009/09/21 - [Programming] - 자동화된 빌드 시스템 구축 (2) 2009/09/21 - ..
출처: 열씨미와 게을러의 리눅스 개발 노하우 탐험기 2009/08/17 - [Programming] - diff, find, md5sum, patch 2009/08/17 - [Programming] - find, grep, ctags, cscope, global 2009/08/17 - [Programming] - shared library, strace, ldconfig, ldd, gcc, strings, od, nm, c++filt, readelf 2009/09/14 - [Programming] - configure 2009/09/21 - [Programming] - 자동화된 빌드 시스템 구축 2009/09/21 - [Programming] - 자동화된 빌드 시스템 구축 (2) 2009/09/21 - ..