c tag

1304 questions


3 answers
269 views
0
I want to clean the initialization of std::map (continued)

19 hours ago19 hours agoI want to clean up the initialization of std::maphas been closed and Continued questions has been deleted, so I will preserve them.It's up to you to think that a pretty code is...


1 answers
327 views
0
I want to display an error when "/0" is entered on the calculator in C language.

I have a question about C language.When I submitted the following code for the calculator problem, I was told to add a code that displays an error when the user enters /0, but I don't know how to do i...

c
1 years ago

1 answers
277 views
0
I want to display an error when "/0" is entered on the calculator in C language.

I have a question about C language.When I submitted the following code for the calculator problem, I was told to add a code that displays an error when the user enters /0, but I don't know how to do i...

c
1 years ago

1 answers
329 views
0
cscanf; I did everything well, but I get a c6328 error.

I'm a beginner who just started learning coding. After the first class, I got confused during the assignment, so I'm leaving a question like this. #include <stdio.h>int main(void){char str[300];...

c
1 years ago

1 answers
217 views
0
C language pointer: I don't know why it's an error

#include <stdio.h>int main(void){ int i = 0; int* pt1; //pt1=ar1=&ar1[0] //pt1 is the order of address storage, and you go to 77755 and read the value //*The value at pt177755 unsigned int ...

c
1 years ago

1 answers
338 views
0
(c language) Numeric Count Question (++) printf If you specify cnt++; outside the sentence, and printf("%d", cnt++), the result will be different.

We are coding to count the number of lines and the corresponding numbers.For example, if you enter 5, the calculation is 12 34 5 67 8 9 1011 12 13 14 15The coding that results in this way.First, you s...

c
1 years ago

1 answers
359 views
0
(c language) Numeric Count Question (++) printf If you specify cnt++; outside the sentence, and printf("%d", cnt++), the result will be different.

We are coding to count the number of lines and the corresponding numbers.For example, if you enter 5, the calculation is 12 34 5 67 8 9 1011 12 13 14 15The coding that results in this way.First, you s...

c
1 years ago

1 answers
274 views
0
C language: whether to continue every 100 units or not

for (i = 1; i <= 1000; i++) { if (i % 7 == 0) printf(%d , i); if (i == 100 || i==200 || i==300 || i==400 || i==500||i==600||i==700||i==800||i==900||i==1000) { printf(Continue(y/n)? ); scanf(%c...

c
1 years ago

1 answers
330 views
0
(c language) Is there a way to reduce the coding that I planned?

Coding is successful, but... I was wondering if I'd been coding too long.The coding got longer. We're going to separate the smaller, the larger of the two intervention values. I was wondering if there...

c
1 years ago

1 answers
368 views
0
This is a language question.

#include <stdio.h>int main(void) { char name[22]; printf (What's your name? ); scanf_s(%s, name, sizeof(name)); int age; printf (How old are you? ); scanf_s(%d, &age); float weight; printf (...

c
1 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.