c++ tag

886 questions


2 answers
62 views
0
The difference between C and C++ for (memory allocation for structures)

Hello, I'm a reserve who just got discharged from the military while preparing to return to school for the second semester of the second year of computer engineering.I was curious while looking at the...

2 years ago

1 answers
20 views
0
Is that a wrong idea? Is that the wrong way?

If there is a matrix of img_3 as shown in the figure below, it is set to go down in the top row, but when it goes down, it is set to go down in the range of +-1. Instead, I went down and picked the lo...

c++
2 years ago

1 answers
91 views
0
Ask a question about the c language source code.

There are three conditions that I want to fill out.The first line has written the code.Second, res was used. By the way, where should I put the res++; code?Please tell me the location. AndHow do I mak...

2 years ago

1 answers
22 views
0
C++ questions

I'm trying to make student information output while studying c++.int main(){ int Stu[2][20] = { {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}, {21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,...

c++
2 years ago

1 answers
18 views
0
C++ Output Basics Question!

I'm a student who just started studying through C++ Jeongol!!The question is, there are printf and cout in C++, right?When opening here, printf inserts \n in the middle of the character to open it In ...

c++
2 years ago

1 answers
23 views
0
To find the rectangular area with c++ if statement

I want to know how to find a rectangular area with a c++ if statement!

c++
2 years ago

1 answers
94 views
0
I'm trying to convert the median to the posterior, but it's not working

#include <stdio.h>char stack[14] = ((9/2)*(4-2));int top = -1;void h_push(int in){ top++; stack[top] = in;}int h_pop(){ int out; out = stack[top]; top--; return out;}int main() { char inpu...

2 years ago

1 answers
56 views
0
c++ char type output

I got 123456 inputI'm trying to print out 321654 What's wrong with my form??int main() { int t = 0; char str1[4]; char str2[4]; cin >> str1 >> str2; char str1copy[4] = { 0 }; char str2copy...

2 years ago

1 answers
74 views
0
CPP cout question.

I'd like to ask you a very basic question I was not used to using the cout command, so I was curious about it after trying many things.If you look at the code below, for convenience of explanation, we...

2 years ago

1 answers
109 views
0
I'm studying mobile Q, but there's something I don't understand (indicated by <--)

#include <stdio.h>int a[4];int front = -1;int rear = -1;void enQueue(int in){ int i, j; If (ear < 3) { // <----Why should it be less than part 3 here?`` `` rear++; a[rear] = in; printf(a...

2 years ago
« - 84 - »

© 2024 OneMinuteCode. All rights reserved.