demian824
@demian824
Reviews Written
-
Average Rating
-
Posts
Q&A
์ด ํ ๊ณต๋ถ๊ณผ์ .
๊ฐ์ฌํฉ๋๋ค. ์ฒ์์ผ๋ก ํ๋ก๊ทธ๋๋ฐ์ธ์ด๋ฅผ ๋๊น์ง ๊ณต๋ถํ๋ ๊ฒ ๊ฐ์ต๋๋ค. ๊ฐ์ธ ์ฌ์ ์ผ๋ก ์ธํ์ฌ ๋ฆ์ ๋์ด์ ๋ค์ ํ๋ก๊ทธ๋๋ฐ์ ์์ํ๋๋ฐ ๋๊น์ง ํ ์ ์๊ฒ ๋์์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
- 0
- 2
- 386
Q&A
do while ์ฐ์ต๋ฌธ์ ์ง๋ฌธ
๊ฐ์ฌํฉ๋๋ค. ๋ค์ ๋ณด๋ ์ดํด๊ฐ ๋์์ต๋๋ค. ์ด์ ๋๋ฌด ๊ธํ๊ฒ ๊ณต๋ถํ์ฌ ์ดํด๋ฅผ ๋ชปํ๊ฑฐ ๊ฐ์์ . ์ ๋ง ๊ฐ์ฌํฉ๋๋ค.
- 1
- 2
- 205
Q&A
<boost/asio.hpp> ๋ฌธ์
์ฌ์ค์น ํ์ ์คํ์ด ์๋ฉ๋๋ค. ๊ฐ์ฌํฉ๋๋ค.
- 0
- 2
- 508
Q&A
์ฐ์ต๋ฌธ์ ๋ต์ ์ง๋ฌธ.
๋ง๊ฒ ์ฝ๋ฉํ๋์ง ๊ถ๊ธํ์ฌ ์ฌ๋ฆฝ๋๋ค. #include #include using namespace std; int main() { unsigned char option_viewed = 0x01; unsigned char option_edited = 0x02; unsigned char option_liked = 0x04; unsigned char option_shared = 0x08; unsigned char option_deleted = 0x80; unsigned char my_article_flags = 0; if (my_article_flags & option_viewed) {cout else {cout if (my_article_flags | option_liked) {cout else {cout if (my_article_flags ^ option_liked) {cout else {cout if (my_article_flags & option_deleted) {cout else {cout /*cout (option_viewed) cout (option_edited) cout (option_liked) cout (option_shared) cout (option_deleted) cout (my_article_flags) my_article_flags |= option_viewed; cout (my_article_flags) my_article_flags |= option_liked; cout (my_article_flags) my_article_flags ^= option_liked; cout (my_article_flags) my_article_flags &= option_deleted; cout (my_article_flags) return 0; }
- 2
- 3
- 380




