본문 바로가기

Byungmeo

(75)
[1d] 11719 : 그대로 출력하기2 1234567891011121314#include int main () { int a; a = getchar(); while(a != -1) { putchar(a); a = getchar(); } return 0;}cs https://www.acmicpc.net/problem/11719 .. 11719랑 똑같은코드인데 되네?
[1d] 11718 : 그대로 출력하기 1234567891011121314#include int main () { int a; a = getchar(); while(a != -1) { putchar(a); a = getchar(); } return 0;}cs https://www.acmicpc.net/problem/11718 참조 : EOF (End Of File)http://jeonggyun.tistory.com/13열혈 C 프로그래밍 418Page ~
[1d] 1001 : A-B 12345678#include int main () { int a,b; scanf("%d %d",&a,&b); printf("%d",a-b); return 0;}cs https://www.acmicpc.net/problem/1001
[1d] 1000 : A+B 1234567#include int main () { int a,b; scanf("%d %d",&a,&b); printf("%d",a+b);}cs https://www.acmicpc.net/problem/1000
[1d] 2557 : Hello World 123456#include int main () { printf("Hello World!"); return 0;}cs https://www.acmicpc.net/problem/2557
유니티 데이터 경로 OS : Windows 7Engine : Unity 2017.2.0f3 PersonalIDE : MonoDevelop [윈도우 에디터]Application.persistentDataPath : 사용자디렉토리/AppData/LocalLow/회사이름/프로덕트이름 파일 읽기 쓰기 가능Application.dataPath : 프로젝트디렉토리/AssetsApplication.streamingAssetsPath : 프로젝트디렉토리/Assets/StreamingAssets 파일 읽기 쓰기 가능 [윈도우 응용프로그램]Application.persistentDataPath : 사용자디렉토리/AppData/LocalLow/회사이름/프로덕트이름 파일 읽기 쓰기 가능Application.dataPath : 실행파일/실행파일_..
HTML 소스코드 하이라이팅 http://hilite.me/
[C#] 형변환 OS : Windows 7Engine : Unity 5.6.0IDE : MonoDevelop 문제 : UGUI Text에 숫자를 넣으려고 했으나 String형을 받아들이는 Text는 Int형인 숫자를 받아들이니 오류를 내뿜음. 해결방법 : Convert.ToString 사용하여 Int형 변수를 String형으로 강제 형변환하면 된다. //다른 자료형들도 가능 코드 : 123456public Text memo;private int a = 0; public void ClickButton() { memo.text = Convert.ToString(a);}Colored by Color Scriptercs ※주의사항 : Convert 사용을 위해선 using System; 해줘야 함