Giter VIP home page Giter VIP logo

examcode's People

Contributors

gitcmhan avatar gitcmhan98 avatar gitcmhan99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

examcode's Issues

궁금한 점이 생겨서 질문 남겨봅니다.

만약 VS에서 프로젝트의 속성에 대상 프레임 워크 버전이 안 맞아서 변경하려고 하는데요.
[솔루션 탐색기] 대상 프로젝트 선택 > [MRB] > 속성 : 응용프로그램 / 대상 프레임워트(G): 에서 해당 버전을 변경하면 되는데요.
대상 솔루션 내의 프로젝트가 엄청 많다면 이 과정을 일일이 수작업으로 한다고 생각하니 너무 막연해 보여서요. 더 효과적인 방법이 있나요?

Google 검색을 하다 보니
[솔루션 탐색기] 대상 프로젝트 하부에 [참조] 하단의 App.config에서 버전이 분명 등록이 되어있기에 바꿔 봤습니다.( [Ctrl] + [Shift] + [F] )
결과는 VS상에서는 버전이 적용이 되지 않는군요. 프로젝트의 속성에서는 이전 버전인 v4.6.1이네요. ㅎㅎ
한번에 손쉽게 수정하는 방법이 있을까요??

16. ch04. 기초문법 - 04. 프로그램 제어하기1 -4의 예문 비트연산이 빠져있습니다.

필요하신 분 마음편히 쓰셔요.

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace _040_Operator_Bit
{
    class Program
    {
        static void Main(string[] args)
        {
            int a = 15;     // 0000 0000    0000 0000   0000 0000   0000 1111
            int b = 22;     // 0000 0000    0000 0000   0000 0000   0001 0110
            int c = a & b;  // 0000 0000    0000 0000   0000 0000   0000 0110 => 6
            Console.WriteLine("a & b: " + c);
 
            // 0000 0000    0000 0000   0000 0000   0000 1111
            // 0000 0000    0000 0000   0000 0000   0001 0110
            int d = a | b; // 0000 0000    0000 0000   0000 0000   0001 1111 => 31
            Console.WriteLine("a | b: " + d);
 
            // 0000 0000    0000 0000   0000 0000   0000 1111
            // 0000 0000    0000 0000   0000 0000   0001 0110
            int e = a ^ b; // 0000 0000    0000 0000   0000 0000   0001 1001 => 25
            Console.WriteLine("a ^ b: " + e);
 
            // 0000 0000    0000 0000   0000 0000   0000 1111
            int f = a << 2// 0000 0000    0000 0000   0000 0000   0011 1100 => 60
            Console.WriteLine("a << 2: " + f);
            Console.WriteLine("a << 1: " + (a << 1)); // 0000 0000    0000 0000   0000 0000   0001 1110 => 30
 
            // 0000 0000    0000 0000   0000 0000   0000 1111
            int g = a >> 2// 0000 0000    0000 0000   0000 0000   0000 0011 => 3
            Console.WriteLine("a >> 2: " + g);
            Console.WriteLine("a >> 1: " + (a >> 1)); // 0000 0000    0000 0000   0000 0000   0000 0111 => 7
 
            // 0000 0000    0000 0000   0000 0000   0001 1110
            int h = ~b; // 1111 1111    1111 1111   1111 1111   1110 1001 => -23
            Console.WriteLine("h = ~b: " + h);
 
            // 0000 0000    0000 0000   0000 0000   0001 1110
            // 1111 1111    1111 1111   1111 1111   1110 1001 => -23
            // 1111 1111    1111 1111   1111 1111   1111 1010 => -6 (CPU에 따른 다른 결과)
            int i = (~b) >> 2;
            Console.WriteLine("i = (~b) >> 2: " + i);
 
            //비트로 출력하기
            string s = Convert.ToString(a, 2).PadLeft(32'0');
            Console.WriteLine("s: " + s);
            s = Convert.ToString(b, 2).PadLeft(32'0');
            Console.WriteLine("s: " + s);
        }
    }
}
cs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.