c++ tag

886 questions


1 answers
20 views
0
the Chec language of Eratosthenes

The source is Baekjun question 1929!Issue:Write a program that outputs all prime numbers from M to N.Enter:In the first line, the natural numbers M and N are given with spaces between them. (1 M M N N...

c++
2 years ago

1 answers
34 views
0
How do I resolve the c6328 error that occurs here?

int main(void){ int n; double x, y, z;printf(1. Calculate triangle width 2. Calculate square width 3. Calculate trapezoidal width \n);printf(Enter the number);scanf(%d, &n);switch (n){case 1: prin...

c++
2 years ago

1 answers
65 views
0
This is a question about c++ inheritance and factor

The result I want is Position = (300, 300), [Rectangle] Size = (100, 100) I tried to make it sloppy with the power of c++ Newbie, but it was not enough. In addition to using virtual functions, the pro...

2 years ago

1 answers
29 views
0
When question

I am studying c++.While writing the sentence, is there any? That's why I ask you this question.#include <stdio.h>int main (){ int x = 0, result = 0; while (1) { scanf_s(%d, &x); result = res...

c++ c
2 years ago

1 answers
24 views
0
the pyramid of numbers

void main(){ int i, j, num;for(i=1; i<=5; i++){ for (j = 1; j <= 5 - i; j++) { printf( ); } for (num = 1; num <= 9; num++) { printf(%d, num); } printf(\n);}}When I did it, 1 123 12345 1234...

c++
2 years ago

1 answers
24 views
0
It's a college question.

I took a class about class this time, but I don't understand, so I'm asking you a question. The language is c++.You must create a class with a name and coordinates (x,y) and a program that generates t...

c++
2 years ago

1 answers
29 views
0
I have a time calculation question on C++

For example, in c++, int starth, startm, endh, endm; int th, tm, minutes;printf (parking fee calculation program\n\n);printf(Enter borrowing time (hour):);scanf(%d %d, &starth, &startm);printf...

c++
2 years ago

1 answers
30 views
0
c++ Copy Substitution Operator Question

Test&operator=(const Test&t) { cout << Test& operator= << endl; return *this; }Test operator=(const Test& t) { cout << Test operator= << endl; return *this;...

c++
2 years ago

1 answers
28 views
0
Question how to print double type as it is when there is no decimal point

I wonder how to print out the double type as it is without a decimal point and as much as it is.If you output the double type like printf(%f) like this, you get 1.000000.

c c++
2 years ago

1 answers
82 views
0
No suitable default constructor available

No suitable default constructor available Error appears This is one of the header files of the fruit-buying programThere's only one constructor error stuck here.class FruitSeller{private: const int AP...

2 years ago
« - 87 - »

© 2024 OneMinuteCode. All rights reserved.