Programming/c# & winform2020. 9. 22. 16:33

특이한 주석이 존재하네?

/// 일 경우에는 xml 주석인데 몇가지 태그가 존재한다.

어떤 의미로는.. doxygen 을 xml로 해놓은것 같긴한데...

결과물에 어떻게 나오는지 궁금하네?

// Adds two integers and returns the result
/// <summary>
/// Adds two integers and returns the result.
/// </summary>
/// <returns>
/// The sum of two integers.
/// </returns>
/// <example>
/// <code>
/// int c = Math.Add(4, 5);
/// if (c > 10)
/// {
///     Console.WriteLine(c);
/// }
/// </code>
/// </example>
public static int Add(int a, int b)
{
    // If any parameter is equal to the max value of an integer
    // and the other is greater than zero
    if ((a == int.MaxValue && b > 0) || (b == int.MaxValue && a > 0))
        throw new System.OverflowException();

    return a + b;
}

 

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/codedoc]

  [링크 : http://blog.daum.net/clerkurt/251]

'Programming > c# & winform' 카테고리의 다른 글

c#은 main()이 아니다 Main()이다 -_-  (0) 2020.09.23
c# base, is  (0) 2020.09.22
c# 프로그래밍, 문법 공부(문자열)  (0) 2020.09.22
c# 교과서 표준 입출력 등  (0) 2020.09.21
c# 교과서 - 키워드 정리  (0) 2020.09.21
Posted by 구차니
Programming/c# & winform2020. 9. 22. 15:42
ToUpper()
ToLower()
Split()
Trim()
TrimStart()
TrimEnd()
string.Join(delimiter, array)

Console.Clear()
Console.SetCursorPosition()

Console.ReadKey()
ConsoleKeyInfo info;
info.key == ConsoleKey.X
ConsoleKey.UpArrow

 

이 먼가.. 메소드에 Capitalize 한 녀석 떄려야함..

쉬프트 누릐기 쬬~~~~오오오오오낸 짜증남 -_-

 

ReadLine()에 이어서 ReadKey()

그리고 ConsoleKeyInfo 라는 녀석이 추가되었네..

'Programming > c# & winform' 카테고리의 다른 글

c# base, is  (0) 2020.09.22
c# xml 주석  (0) 2020.09.22
c# 교과서 표준 입출력 등  (0) 2020.09.21
c# 교과서 - 키워드 정리  (0) 2020.09.21
c# checked , unchecked  (0) 2020.09.21
Posted by 구차니
embeded/raspberry pi2020. 9. 22. 12:16

ozeki

 

나중에 읽어 봐야겠다..

그런데 VoIP가 정확하게 멀 의미하는거지?

 

 

[링크 :  https://www.instructables.com/id/How-to-make-VoIP-calls-from-Raspberry-Pi/]

[링크 : https://www.voip-info.org/sflphone/]

Posted by 구차니

두개가 무슨 차이인가 해서 찾아봤떠니

 

 

내보내기는 사용자가 설정 가능하고

 

직접내보내기는 정해진 옵션으로 파일명만 지정하고 내보낸다.

 

편의측면에서는 나쁘지 않지만 directly 라는 말이 와닫는 용어는 아닌듯?

 

[링크 : https://ask.libreoffice.org/en/question/241143/difference-in-pdf-export/]

Posted by 구차니
프로그램 사용/openHPC2020. 9. 22. 09:58

torque 설치하고 나서 생긴건 진 모르겠지만 의심가는건 그 것 뿐 -_-

 

[링크 : https://slurm.schedmd.com/documentation.html]

[링크 : https://askubuntu.com/questions/1061325/slurm-new-user-on-ubuntu-18-04]

[링크 : https://cloud.google.com/solutions/deploying-slurm-cluster-compute-engine?hl=ko]

[링크 : https://blog.ksc.re.kr/124]

[링크 : https://wonwooddo.tistory.com/35]

'프로그램 사용 > openHPC' 카테고리의 다른 글

slurm gpu  (0) 2020.11.16
openBMC  (0) 2020.11.02
HPL for CUDA , KNL  (0) 2020.11.02
torque PBS on ubuntu  (0) 2020.09.21
qsub? torque?  (0) 2020.09.18
Posted by 구차니
이론 관련/전기 전자2020. 9. 21. 18:02

인덕션이라길래 그 전기레인지 상상했는데 오디오랑 도대체 어떻게 연결이 되나 했더니

한줄 요약하면 인공와우 혹은 보청기 사용자를(청각 장애인) 위한 전용 스피커 정도로 하면 될 듯

induction을 통해 코일에 직접적으로 음파를 전달하는걸로 보면 될것 같기도 하지만.. 내 영역 밖의 이야기.. ㅠㅠ

 

[링크 : https://en.wikipedia.org/wiki/Audio_induction_loop]

[링크 : https://kor.kunyoong.com/board/read.php?M2_IDX=16088&BCL_IDX=&SC_WORD=&MY=&PAGE=1&B_IDX=22759]

'이론 관련 > 전기 전자' 카테고리의 다른 글

dBFS  (0) 2021.01.29
FFT와 고조파(harmonic)  (0) 2020.10.05
quadrature sampling(I/Q signal)  (0) 2020.09.06
가변저항과 전압  (2) 2020.03.09
래칭 릴레이(latching relay)  (0) 2019.12.22
Posted by 구차니
프로그램 사용/openHPC2020. 9. 21. 15:36

패키지 구성은 위는 서버 아래는 클라이언트.

그나저나 클러스터로 구성되면 어떤 작업이든 상관이 없이 가능한건가? (분산 빌드가 가능?)

sudo aptitude install torque-server torque-scheduler torque-client
sudo aptitude install torque-client torque-mom

[링크 : https://help.ubuntu.com/community/TorquePbsHowto]

[링크 : https://pmateusz.github.io/linux/torque/2017/03/25/torque-installation-on-ubuntu.html]

[링크 : https://jabriffa.wordpress.com/.../installing-torquepbs-job-scheduler-on-ubuntu-14-04-lts/]

[링크 : https://jabriffa.wordpress.com/.../adding-client-nodes-to-a-torquepbs-system-on-ubuntu-14-04-lts/]

[링크 : http://sarghis.com/blog/652/]

 

[링크 : https://community.openpbs.org/t/installation-of-torque-in-single-node-ubuntu-14-04/846]

'프로그램 사용 > openHPC' 카테고리의 다른 글

slurm gpu  (0) 2020.11.16
openBMC  (0) 2020.11.02
HPL for CUDA , KNL  (0) 2020.11.02
slurm 계정이 생겼다?  (0) 2020.09.22
qsub? torque?  (0) 2020.09.18
Posted by 구차니
Programming/c# & winform2020. 9. 21. 14:41

- printf, scanf()

Console.WriteLine(1/2); // 0, 앞의 숫자로 암시적 캐스팅 되서 결과가 나오는 듯
Console.WriteLine("안녕하세요"[100]); // 에러는 발생하지만 이런식으로 변수가 생성 가능한 듯
Console.WriteLin('가'+'힣'); // 99235 char 형으로 인식해서 숫자로 되는 듯. "가" 로 하면 합쳐지려나?

Console.ReadLine();

 

INT_MAX

int.MaxValue
int.MinValue
long.MaxValue
long.MinValue

 

variable.GetType() // 형을 리턴함 "System.Int32"

 

int.parse("111")
int.ToString()
double_var.ToString("0.00"); // 소수점 두자리 출력하도록 제한

 

time 함수?

DateTime.Now.Year
DateTime.Now.Month
DateTime.Now.Day
DateTime.Now.Hour
DateTime.Now.Minute
DateTime.Now.Second

'Programming > c# & winform' 카테고리의 다른 글

c# xml 주석  (0) 2020.09.22
c# 프로그래밍, 문법 공부(문자열)  (0) 2020.09.22
c# 교과서 - 키워드 정리  (0) 2020.09.21
c# checked , unchecked  (0) 2020.09.21
c#(mono) on ubuntu  (0) 2020.09.21
Posted by 구차니
Programming/c# & winform2020. 9. 21. 14:26

좀 생소한 녀석들이 보이네..

 

일반 키워드
abstract
as - effectc c# 에서는 시작 부분에 cast 대신 쓰라고 나오네?
base
bool
break
byte
case
catch
char
checked
class
const
continue
decimal
default
delegate
do
double
else
enum
event
explicit
extern
false
finally
fixed
float
for
foreach
goto
if
implicit
in
int
interface
internal
is
lock
long
namespace
new
null
object
operator
out
override
params
private
protected
public
readonly
ref
return
sbyte
sealed
short
sizeof
stackalloc
static
string
struct
switch
this
throw
true
try
typeof
uint
ulong
unchecked
unsafe
ushort
using
virtual
void
volatile
while

컨텍스트 키워드
add
alias
ascending
async
await
descending
dynamic
from
get
global
group
into
join
let
orderby
partial
remove
select
set
value
var - js 등의 var와 동일한데 초기에 변수 형태가 정해지면 바꿀순 없음
where
yield

'Programming > c# & winform' 카테고리의 다른 글

c# 프로그래밍, 문법 공부(문자열)  (0) 2020.09.22
c# 교과서 표준 입출력 등  (0) 2020.09.21
c# checked , unchecked  (0) 2020.09.21
c#(mono) on ubuntu  (0) 2020.09.21
c# 변수형  (0) 2020.09.18
Posted by 구차니
Programming/c# & winform2020. 9. 21. 12:13

오버플로우를 컴파일 타임이나 런 타임에 확인하도록 하는 키워드

기본적으로 컴파일 타임에 확인이 되도록 되어있고

런타임 체크에서 checked로 되어 있으면 검사하고 unchecked로 되어 있으며 하지 않도록 되는 듯.

 

checked도 unchecked도 지정하지 않으면 상수가 아닌 식(런타임에 계산되는 식)의 기본 컨텍스트는 -checked 컴파일러 옵션의 값으로 정의됩니다. 기본적으로 이 옵션의 값은 설정되지 않으며 unchecked 컨텍스트에서 산술 연산이 실행됩니다.

상수 식(컴파일 시간에 완전히 계산될 수 있는 식)의 경우 기본 컨텍스트는 항상 checked입니다. 상수 식이 unchecked 컨텍스트에 명시적으로 배치되지 않는 경우 식에 대한 컴파일 시간 계산 중 발생하는 오버플로로 인해 컴파일 시간 오류가 발생합니다.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/checked-and-unchecked]

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/checked]

 

unchecked 환경을 제거하면 컴파일 오류가 발생합니다. 식의 모든 항이 상수이기 때문에 컴파일 시간에 오버플로가 검색될 수 있습니다.

상수가 아닌 항을 포함하는 식은 컴파일 시간 및 런타임에 기본적으로 확인되지 않습니다. checked 환경을 사용하도록 설정하는 방법에 대한 자세한 내용은 checked를 참조하세요.

오버플로를 확인하는 데 시간이 걸리기 때문에 오버플로 위험이 없는 상황에서는 unchecked 코드를 사용하여 성능을 향상할 수 있습니다. 그러나 오버플로가 발생할 가능성이 있는 경우 checked 환경을 사용해야 합니다.

[링크 : https://docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/keywords/unchecked]

'Programming > c# & winform' 카테고리의 다른 글

c# 교과서 표준 입출력 등  (0) 2020.09.21
c# 교과서 - 키워드 정리  (0) 2020.09.21
c#(mono) on ubuntu  (0) 2020.09.21
c# 변수형  (0) 2020.09.18
c# 에서 hex string을 숫자로 변환하기  (0) 2020.09.15
Posted by 구차니