본문 바로가기

**226

[BAEKJOON] No.2953 C++ 나는 요리사다 ​ ​ ​ #include using namespace std; int main(int argc, const char * argv[]) { int arr[5][4],max=0,sum=0,idx=0; for(int i=0; i arr[i][j]; } } for(int i=0; i 2021. 10. 14.
[Swift #2] 간단한 출력 ​ import SwiftUI struct ContentView: View { var body: some View { ZStack{ Color.yellow // 배경 색 설정 VStack(spacing:30){ //세로 방향으로 뷰 배열하는 컨테이너 뷰 Text("Hello, world!") .padding() //텍스트 주변 여백 설정 .font(.largeTitle) //폰트설정 .foregroundColor(.green) //폰트 색 설정 Text("swift") .foregroundColor(.white) //폰트에 색깔 네모박스 치기(형광펜) .padding() .background(Color.blue) Text("커스텀 폰트,볼드체,이탤릭체,밑줄") //밑으로 순서대로 .font(.custom.. 2021. 10. 14.
[Swift #1] SwiftUI Xcode 실행 스윗한 SwifuUI 저자 : 이봉원 비제이퍼블릭 말그대로 UI에 대해 실용적으로 배울 수 있는 책이다. 코딩을 많이 접해보지 않은 사람은 문법책을 같이 사는것도 괜찮을것같다. ​ 나는 안샀지만 객체지향에 대한 이해도가 높지 않기 때문에 좀 더 두고보고 살지말지 결정할 예정 ​ ​ ​ ​ ​ ​ ​ Xcode다운로드 후 Creat a new Xcode project 선택 ​ ​ ​ ​ ​ ​ App선택 책에는 single view app으로 나와있지만 없길래 저걸로 켜봤는데 똑같은듯 하다. ​ ​ ​ ​ ​ ​ Product Name입력해준다. 간단하게 HelloSwiftUI 입력했다. ​ ​ ​ ​ ​ 처음 실행화면 중간 맨 위에서 시뮬레이터를 설정할 수 있다. ​ 본인은 아이폰 11프로했음 ​ ​ ​.. 2021. 10. 14.
윈도우 계산기 프로그램 _ C# (망한코드) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace 윈도우_계산기_프로그램 { public partial class Form1 : Form { private int num1,num2,memory; String nums = null; private char op; bool opCheck = false, numCheck = false, firstInput = tru.. 2021. 10. 14.