i made this program to make a function to check if integar array is palindrome or not.it is always giving output that it is not a palidrome on every input. can you plz help me out? code: #include<iostream> using namespace std; void palindrome(int[],int[],int); int main() { int size=5; int array1[size]; int array2[size]; palindrome(array1,array2,size); } void ..

#### Category : user-defined-functions

I am doing a code in c++ where I am supposed to be finding the series and I build the function for the series myself yet and I call the function I don’t find my answer here is my code #include <iostream> #include <cmath> using namespace std; double harmonicSeries(int n); int main() { int n; ..

Like the title states I am looking to build a function that returns a printed box of characters. The box should be as wide as the cin >> number . Heres what ive got goin on what kind of variables am i looking at here and whats my definition going to look like? any insight ..

so i am new to c++ and thought i understood how to get the basics down in terms of functions, but im having a few issues. in an assignment, i need to return the value distance, radius, circumference, area, and diameter for a circle. currently using codeblocks, the code compiles but doesnt work properly. any ..

I must perform an aggregation within a sliding window in Pyspark. In particular, I must do the following operations: Consider 100 days worth data at a time GroupBy a given column of ID Take the last value of the aggregation Sum the values and return the result These tasks must be computed in a sliding ..

I have a code in Rcpp like below: for(int i = 0; i < 1000; i++){ operator(i, … ) } "operator" is defined in Rcpp with the following structure: operator(int i, NumericVector A, & arm::cube MyOutput, List Data){ … } This function updates the values of MyOutput based on a long computation. I would like ..

Each unit is assigned 2,3 or 4 credit hours The points for the course are computed as follows: A = 4.0 points, B+ = 3.5 points, B = 3.0 points, C+ = 2.5 points, C = 2.0 points, D+ = 1.5 points, D = 1.0 points, E = 0 points. The GPA of a student ..

I am new to MonetDB, and want to write an SQL query in C++ that includes a C++ function as shown in the link below, but I’m not sure how to actually do this. https://www.monetdb.org/index.php/blog/JIT_C_C%252B%252B_UDFs_in_MonetDB If I set up an ODBC connection can I send the function along with the SQL query via the ODBC ..

I have a question that I’m stuck in it; I want to catch the VOF of the phases on the wall by a defined profile. Is there any macro for this purpose, and with what data accessing and looping macro? I send my code here, so if you can help me, I will be appreciated. ..

I would like to pass a function with multiple arguments on an R function (hcubature), within a C++ function. The aim is then to source the *.cpp file containing all this functions in R using Rcpp. In the example below I’m showing the functions I’m using. Function 1 is used by Function 2. Function 2 ..

## Recent Comments