What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-26 08:20:05
error: use of parameter outside function body before ] token c++
If you are using GCC, then you are to pass the length of the array as a parameter to the function. void foo (int m, int arr[][m]) { //... } However, there seems to be a bug in either the compiler or the documentation, as the above function prototy... Add solution -
C++ 2021-10-27 21:04:05
error: use of parameter outside function body before ] token c++, 2D array in c++
If you are using GCC, then you are to pass the length of the array as a parameter to the function. void foo (int m, int arr[][m]) { //... } However, there seems to be a bug in either the compiler or the documentation, as the above function prototype ... Add solution -
C++ 2021-10-27 09:34:14
how to define function prototypes in c++
/* C++ Function Prototype and C++ Function Definition */ #include<iostream.h> #include<conio.h> #include<stdlib.h> int add(int, int); // function prototype int subtract(int, int); // function prototype int multiply(int, int)... Add solution -
C++ 2021-10-11 06:44:06
passing 2d array in c++ in function
If you are using GCC, then you are to pass the length of the array as a parameter to the function. void foo (int m, int arr[][m]) { //... } However, there seems to be a bug in either the compiler or the documentation, as the above function prototype ... Add solution -
C++ 2021-09-29 04:48:02
how to read wav file in C++
#include <iostream> #include <string> #include <fstream> #include <cstdint> using std::cin; using std::cout; using std::endl; using std::fstream; using std::string; typedef struct WAV_HEADER { /* RIFF Chunk Descriptor */ ... Add solution -
Other 2021-09-22 04:11:05
best calcculator c program
// Calculator example using C code #include<stdio.h> #include<conio.h> #include<math.h> #include<stdlib.h> #define KEY "Enter the calculator Operation you want to do:" // Function prototype declaration void addition(); ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5