묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결C 프로그래밍 - 입문부터 게임 개발까지
질문이요!
4-6강의 들으면서 코드 똑같이 해보았는데 디버깅이 안돼요.. 출력에서는 error LNK2019: _print 외부 기호(참조 위치: _main 함수)에서 확인하지 못했습니다. fatal error LNK1120: 1개의 확인할 수 없는 외부 참조입니다. 라고 나오면서 빌드가 안돼요.. 코드는 다시 확인하고 했는데 계속 안돼더라고요.. 뭐가 잘못인지 알려주세요.. srand(time(NULL)); int num = rand() % 100 + 1; printf("숫자 : %d\n", num); int answer = 0; int chance = 5; while (chance > 0) { printf("남은 기회 %d 번\n", chance--); printf("숫자를 맞혀보세요 (1~100) : "); scanf_s("%d", &answer); if (answer > num) { print("DOWN \n\n"); } else if (answer < num) { printf("UP \n\n"); } else if (answer == num) { printf("정답입니다 !\n\n"); break; } else { printf("알 수 없는 요류가 발생했습니다. 코드를 다시 확인해 주세요\n\n"); } if (chance == 0) { printf("모든 기회를 사용하셨습니다.\n\n"); break; } }
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
main 함수에서 failed 가 뜨는데 어느 부분이 잘못되었는지 궁금합니다.
다양한 방법으로 시도하는데 계속 main 함수부분만 failed가 뜨네요 왜 그럴까요? 어느부분을 잘못 접근했는지 정말 궁금합니다. 전체소스 # -*- coding: utf-8 -*- def is_positive_number(integer_str_value): # ''' # Input: # - integer_str_value : 숫자형태의 문자열 값 # Output: # - integer_str_value가 양수일 경우에는 True, # integer로 변환이 안되거나, 0, 음수일 경우에는 flase # Examples: # >>> import factorial_calculator as fc # >>> fc.is_positive_number("100") # True # >>> fc.is_positive_number("0") # False # >>> fc.is_positive_number("-10") # False # >>> fc.is_positive_number("abc") # False # ''' try: # ===Modify codes below============= if int(integer_str_value) > 0: return True else: return False # ================================== except ValueError: return False def get_factorial_value(integer_value): # ''' # Input: # - integer_value : 자연수 값 # Output: # - integer_value의 Factorial 값 # Examples: # >>> import factorial_calculator as fc # >>> fc.get_factorial_value(5) # 120 # >>> fc.get_factorial_value(7) # 5040 # ''' # ===Modify codes below============= result = 1 for num in range(1, integer_value + 1): result *= num # ================================== return result def main(): user_input = 999 # ===Modify codes below============= while user_input != 0: user_input = input("Input a positive number : ") if is_positive_number(user_input): print(get_factorial_value(int(user_input))) elif user_input == '0': user_input = 0 print("Thank you for using this program") else: print("input again, Please") # ================================== if __name__ == "__main__": main() 결과 Input a positive number : 103628800Input a positive number : 36Input a positive number : 5120Input a positive number : abcinput again, PleaseInput a positive number : lsinput again, PleaseInput a positive number : 32.3input again, PleaseInput a positive number : 0Thank you for using this program
-
미해결Ethereum 실전! 초보자를 위한 Lottery Dapp 개발
질문입니다
안녕하세요! 15분 14초에서 이렇게 나오는데 호출이 안된걸까요?
-
해결됨홍정모의 따라하며 배우는 C++
12분 28초 default 생성자 관련
Student에서(const std::string &name_in = "No Name" ,...) 이렇게 선언했을때 아무것도 안들어갈경우 No Name으로 default해주었으니까 Person의 생성자에서는 default생성자가 아닌 앞서 만들어주신 Person(const std::string &in) 에서 in부분이 작동되어야 하는거 아닌가요? Person() 이렇게 default 생성자를 안만들어줘도 그쪽으로 작동해야 된다고 생각하는데 그렇지 않고 또 왜 그렇게 되는지 이해가 잘 되지 않습니다.
-
해결됨자바 프로그래밍 입문 강좌 (renew ver.) - 초보부터 개발자 취업까지!!
강의하신 ppt자료는 없는건가요?
안녕하세요~ 강의 잘듣고 있는데요 혹시 강의에 사용하신 PPT자료랑 소스는 제공해 주시지 않는건가요? 제공되면 참 좋을거 같아서요~ 즐거운 하루 되세요~^^
-
미해결홍정모의 따라하며 배우는 C++_스트리밍 전용
이동생성자 argument 에 관하여..
예시 든 것 중에 AutoPtr(AutoPtr &&a) 에서 왜 a 앞에 참조자가 두번 들어가나요? (한번이 아니라)
-
미해결파이썬 사용자를 위한 웹개발 입문 A to Z Django + Bootstrap
base.html 파일에 </div> 위치에 따라 서치바위 위치가 달라집니다.
base.html에서 col-md-8 아래쪽에 바로 </div>를 하면 기본 blog에서는 서치바와 카테고리바가 오른쪽에 정상적으로 나오지만 blog/1/인 detail쪽에서는 서치바와 카테고리바가 아래로 내려갑니다. </div>를 서치바와 카테고리 위젯 다끝난후에 닫으면 반대로 기본blog에서는 아래로가고 detail에서는 오른쪽에 정상위치합니다. 무엇이 잘못된걸까요?
-
미해결파이썬 입문 및 웹 크롤링을 활용한 다양한 자동화 어플리케이션 제작하기
GUI와 파싱
저가 지금 디자이너로 윈도우 창 디자인을 대충 짜놨는데 공공데이터포털에서 XML 데이터를 파싱 한 후에, 예를들어 버튼을 누르면 파싱한 데이터의 텍스트나 이미지가 PlainText창에 뜬다든지와 같이 파싱을 한 후에 어떤식으로 이벤트를 줘서 프로그램을 만드는지 모르겠습니다ㅠ.ㅠ 그리고 xml 데이터를 파싱하는 강좌도 딱 하나 있어서 들어보았는데 데이터 마다, 내가 어떻게 할 지에 따라 달라져서 파싱을 정확히 어떻게 하는지도 잘 모르겠습니다... 도움이 될만한 자료나 사이트가 있을까요...??
-
해결됨Node.js 교과서 - 기본부터 프로젝트 실습까지
9. CLI 프로그램 만들기
안녕하세요. 좋은 강의 해주셔서 감사합니다. 9장 첫 시작부터 막혀서 질문드립니다. npm i -g로 패키지를 잘 설치해서 제로초님과 같은 결과를 받았는데도 cli 를 쳐보면 제로초님과 같은 index.js 파일이 뜨지 않고 변수값을 요청합니다. 어떻게 해야할까요?
-
미해결Vue.js - Django 연동 웹 프로그래밍
강의 잘 들었습니다.
좋은 강의 해주셔서 감사합니다. 혹시 다음번 강의를 하게되면 VUEJS-Django간에 REST API를 이용한 방식으로 개발하는 내용이 있기를 바랍니다. ㅠ
-
해결됨C 프로그래밍 - 입문부터 게임 개발까지
질문있습니다!
예외 발생(0x00000000610561C5(f_sps.dll), nadocording.exe): 0xC0000005: 0xFFFFFFFFFFFFFFFF 위치를 읽는 동안 액세스 위반이 발생했습니다.. 이런 메세지가 뜨는 경우는 코드에 잘못된 부분이 있어서 그런건가요? 실행은 잘 됩니다.
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
Klaytn IDE & 스마트계약 2 강의
안녕하세요 해당 강의 예제의 // Klaytn IDE uses solidity 0.4.24 version. pragma solidity 0.4.24; contract AdditionGame { address public owner; constructor() public { owner = msg.sender; } function getBalance() public view returns (uint) { return address(this).balance; } function deposit() public payable { require(msg.sender == owner); } } 컨트랙트에 TxValue에 0이아닌 값을 설정할 경우 배포되지 않습니다. 디버깅도 안되는데 무엇이 문제일까요 ㅠㅠ 그리고 0 TxValue로 배포한 컨트랙트에서 일어나는 트랜잭션들은 다 Klaytnscope에서 TxType이 Legacy transaction이라구 나오네요
-
미해결iOS AutoLayout 완벽 가이드 - 실무 프로젝트를 위한 실전강의
알림후 클릭시 이동 문제
AppDelegate.swift func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response : UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { print("userNotificationCenter 2") if response.notification.request.identifier == "testIdentifier" { print("handling notification with the identifier 'testIdentifer'") } if let notification = response.notification.request.content.userInfo as? [String:AnyObject]{ print (notification as Any) let message = parseRemoteNotification(notification: notification) print(message!) let seq = parseOrderSeq(notification: notification) print(seq!) var loginVC : UIViewController? loginVC = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "LoginViewController") as! LoginViewController let appDelegate = UIApplication.shared.delegate as! AppDelegate appDelegate.window?.rootViewController = loginVC } completionHandler() } console log 2019-05-23 15:14:41.282374+0900 bossapp[38816:10485392] Warning: Attempt to present <UIAlertController: 0x105007200> on <bossapp.LoginViewController: 0x103526eb0> whose view is not in the window hierarchy! 하면서 구현이 안되고 그냥 바로 원래 되던 메인으로 가네요. 어떻게 구현 하면 좋을까요?!
-
미해결홍정모의 따라하며 배우는 C++
챕터 10
내용이 생소하고 잘 와닿지 않아요.. 스킵하고 나중에 보는게 더 나을까요?
-
미해결Vue.js - Django 연동 웹 프로그래밍
클래스형 뷰.. 어떻게 활용법을 다 아신거에요?ㅠ
http://ccbv.co.uk/ 사이트에서 클래스형 뷰 보면서 어떻게 상속받고 어떤 부분을 활용해야되는지 어떻게 아신거죠? 제가 초짜이지만 강의봐서는 따라하기 힘들어보여요 ㅠ
-
미해결메타스플로잇(Metasploit) 활용한 취약점 분석(초중급과정)
동영상을 다운로드 할 수 없나요?
인터넷 연결이 안되는 상황이라서 동영상을 다운로드 받아서 강의를 듣고 싶은데 동영상을 다운로드 받을 수는 없나요?
-
미해결웹 게임을 만들며 배우는 자바스크립트
8-16 마무리
8-16 마무리 하려고 하는데 처음에 시작할때 지뢰 표시없애고 마지막에 펑을 지뢰있는 곳에 다하려고 하는데 그 부분은 어떻게해야될까요
-
미해결파이썬 라즈베리파이 IoT프로젝트-원격모니터링 자동차
MotorControl 파일입니다.(모터멈추기)
340L293D_MotorControl.py 모터가 구동된 후 멈추는 것은 어떻게 하는지를 여쭤봅니다.이 파일 한번 봐주세요.
-
미해결자바스크립트로 알아보는 함수형 프로그래밍 (ES5)
일급함수 - 함수에 인자를 함수로 넣을 때...
함수에 인자를 함수로 넣을 때 var example1 = (function(){ return { } })(); 이 것도 함수에 인자를 함수로 넣은 것인가요??
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
스마트 배포 2 truffle deploy --network klaytn
이하와 같이 에러가 나는데 도와주세요! root@23a894f1ee94:/home# truffle deploy --network klaytn Using network 'klaytn'. Running migration: 1_initial_migration.js Deploying Migrations... ... undefined Error encountered, bailing. Network state unknown. Review successful transactions manually. Error: Invalid JSON RPC response: {"id":5,"jsonrpc":"2.0"} at Object.InvalidResponse (/usr/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1) at /usr/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1 at /usr/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:225:1 at /usr/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1 at /home/node_modules/web3-provider-engine/index.js:149:9 at /home/node_modules/async/internal/once.js:12:16 at replenish (/home/node_modules/async/internal/eachOfLimit.js:61:25) at /home/node_modules/async/internal/eachOfLimit.js:71:9 at eachLimit (/home/node_modules/async/eachLimit.js:43:36) at /home/node_modules/async/internal/doLimit.js:9:16 at end (/home/node_modules/web3-provider-engine/index.js:124:5) at /home/node_modules/async/internal/once.js:12:16 at next (/home/node_modules/async/waterfall.js:21:29) at /home/node_modules/async/internal/onlyOnce.js:12:16 at /home/node_modules/async/internal/once.js:12:16 at next (/home/node_modules/async/waterfall.js:21:29) at /home/node_modules/async/internal/onlyOnce.js:12:16 at /home/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:374:7 at /home/node_modules/async/internal/once.js:12:16 at next (/home/node_modules/async/waterfall.js:21:29) at /home/node_modules/async/internal/onlyOnce.js:12:16 at /home/node_modules/web3-provider-engine/subproviders/hooked-wallet.js:402:5