Trending questions in C++

0 votes
1 answer

Passing a 2D array to a C++ function

How to pass 2D array to a ...READ MORE

Oct 13, 2023 in C++ by Artp

edited Mar 5 32,940 views
0 votes
1 answer

How to reverse a number in C++?

#include <iostream> using namespace std; int main() { int n; cin>>n; int ...READ MORE

Oct 28, 2024 in C++ by kavya
840 views
0 votes
1 answer

casting int to char using C++ style casting [duplicate]

Even though the precision is lost, yo ...READ MORE

Jun 13, 2022 in C++ by Damon
• 4,960 points
22,006 views
0 votes
0 answers

fatal error: cs50.h (c language library) : No such file or directory

I am trying to use cs50 library ...READ MORE

Sep 16, 2023 in C++ by Mostafa

edited Mar 5 420 views
0 votes
0 answers

undefined reference to `get_string' cs50 library

i am having this problem it tells ...READ MORE

Sep 16, 2023 in C++ by Mostafa

edited Mar 5 379 views
0 votes
1 answer

Use of min and max functions in C++

The functions fmin and fmax are designed ...READ MORE

Jun 21, 2022 in C++ by Damon
• 4,960 points
13,351 views
0 votes
1 answer

Is there any built-in factorial function in c++?

Although no C function is written particularly for computing factorials, the C math package allows you to compute the gamma function. Because (n) Equals (n-1)!  Using tgamma of i+1 on positive integers returns i!. for (int i = 1 ; ...READ MORE

Aug 2, 2022 in C++ by Damon
• 4,960 points
10,467 views
0 votes
1 answer

Why can't the switch statement be applied on strings?

The reason for this is due to ...READ MORE

Jun 28, 2022 in C++ by Damon
• 4,960 points
10,381 views
0 votes
1 answer

How does #include <bits/stdc++.h> work in C++? [duplicate]

#include <bits/stdc++.h> is a precompiled header implementation ...READ MORE

Jun 21, 2022 in C++ by Damon
• 4,960 points
9,852 views