2번째 사진처럼 결과를 나오게 하고 싶고, and랑 or 연산을 선언 하라는데 어떻게 선언하는지를 모르겠어요.. C++에서 AND연산은 && OR연산은 || 으로...
태그: c, c쁠쁠, c쁠쁠프로그래밍, 프로그래밍, 프로그래밍언어, 프로그래밍기초, 프로그래밍공부, 프로그래밍오류
C++ 에서 if (score >= 90) grade = 'A'; else if (score >= 80) grade = 'B'; else if (score >= 70) grade = 'C'; else if (score >= 60) grade = 'D'; else grade = 'F'; cout...
태그: C언어, c쁠쁠, c쁠쁠프로그래밍, c언어프로그래밍, c쁠쁠고수, c언어고수, c언어공부, c언어문제
제가 C++로 탄화수소 분자량 계산하는 코드를 짜고 있는데요, 반복문을 통해 내가 'N' (no의 의미)를 누르기 전까지, 즉, 'Y' (yes의 의미)을 계속 누르면 계속...
태그: C언어, c쁠쁠, c쁠쁠프로그래밍, 코드, 빠른시간안에부탁드려요, 내공500겁니다빠른답변부탁드려요
스무줄 남짓 되는 초보들도 에이 뭐야 할 만한 코드인데 C언어로 다 적어뒀거든요… 그걸 C++ 언어로 다 바꿔야 하는데 혹시 변환 도와주실 분 계실까요 ㅠㅠ...
두문제 풀이 알려주시면 감사하겠습니다ㅜㅜㅜㅜㅜㅜ 아래 코드를 참고해보세요. [첫 번째 질문] main.cpp Adder.h Adder.cpp Calculator.h Calculator.cpp [두...
이 두 문제 풀어주세요ㅠㅠ! 1. 헤더 파일.h ifndef HEADER_DEFINE define HEADER_DEFINE include <iostream> using namespace std; class Adder// 덧셈...
태그: c쁠쁠, c쁠, c쁠쁠프로그래밍, 프로그래밍, 컴퓨터, 자바스크립트, c언어, c언어프로그래밍, 자바프로그래밍, 코딩
c쁠쁠 이문제 풀어주세요 include <iostream> using namespace std; // Rectangle 클래스 작성하기 class Rectangle { int width; int height; public...
태그: c쁠쁠, c쁠쁠프로그래밍, 자바스크립트, 코딩, 자바프로그래밍, 자바코딩, 컴퓨터프로그래밍, 컴퓨터, c언어, 컴퓨터공학과
C++ 이문제 질문이요 이문제 풀이좀요 void TV::incChannel(int n){ channel += n; } void TV::decChannel(int n){ channel -= n; } void TV::incVolume(int n)...
태그: c쁠쁠, c쁠쁠프로그래밍, c언어, c언어프로그래밍, 자바, 자바스크립트, 프로그래밍, 컴퓨터, 컴퓨터학과
Complete the declaration and initialization of the array variable, int array[ ]={???};. Initialized the first index with 40, the second index with 32, the third index 21, and the...
char secretCode(int n){ char letters[ ]= "abcdefghijklmnopqrstuvwxyz"; int number = n; while (number >26){ number = number - 26; } return letters[number-1]; } 위의 코드는 완벽하게 잘...