c++ tag

886 questions


1 answers
102 views
0
I've never seen an exception error before How should I fix it?

It's a program that receives a median expression, changes it to a posterior expression, and then calculates itIf the number divided by 0 is an exception, we put an exception codeThe code error is Exce...

2 years ago

1 answers
92 views
0
c++ Find the smallest number

int i, min = 0; for (i = 0; i < 10; i++) { cin >> number; if (i == 0) // Condition A min = number; else if (min > number) // Condition B min = number; } cout << min;Hello, the...

2 years ago

1 answers
20 views
0
Output the position of the maximum value in c++

using namespace std;int main(){ int x; int max = 0; cout << Enter 10 numbers << endl; for (int i = 0; i < 10; i++) { cin >> x; if (x > max) { max = x; } } cout << Th...

c++
2 years ago

1 answers
46 views
0
How to delete html file strings in a folder in bulk

I'm thinking about implementing it with Python in all html files within a particular folderI want to remove all strings between <script~~~/script>ㅠ

2 years ago

1 answers
105 views
0
c++ Repeating Statement

#include <iostream>using namespace std;int main(){ const int N=3; int i,j; for(i=0; i < N; i++){ for(j=i; j < N; j++){ cout << i << << j << endl; } }}When you go ...

2 years ago

1 answers
26 views
0
c How to remove the last comma of the output statement

#include <iostream> using namespace std; int main(){ int num; cout << Enter you number : ; cin >> num; for(int i = 1; i <= num; i++){ int k = i % 10; if (k == 3 || k == 6 || k =...

c++ c
2 years ago

1 answers
50 views
0
Can the parameters of the C/C++ function be used without initialization?

#include <iostream> using namespace std;int getsum(int);int main() { int num, sum; cin >> num; sum = getsum(num); cout << sum << sum << endl;}int getsum(int value) { int...

2 years ago

1 answers
60 views
0
C/C++ variable initialization process question

#include <iostream>using namespace std;int main() { int num1, num2; // variable to store two digits from the user inti; // variables for repetition int oddSum = 0; // Variable to store odd sum e...


1 answers
86 views
0
C/C++ prime number discriminator

#include <iostream>using namespace std; int main(){int begin, end, i;int condition = 0;cout << Enter two integers between range 1 to 100 <<endl; cin >> begin >> end; whil...

2 years ago

1 answers
47 views
0
Can't the name of the C/C++ variable be the same as the name of the function?

#include <iostream>using namespace std;int sum(int a, int b){ return a + b;}int main() { int a , b; int sum = sum(5,6); cout << sum;}There's an error. Can't the variable name in the main f...

2 years ago
« - 80 - »

© 2024 OneMinuteCode. All rights reserved.