inverser les éléments d'un tableau manuellement en c++
C++
#include <iostream>
using namespace std;
int main() {
int array1[5]={1,2,3,4,5};
int array2[5];
for(int i=0;i<5;i++) {
array2[i]=array1[(5-i)-1];
cout<<"Number at index"<<i<<"="<<array2[i]<<endl;
}
}
Also in C++:
- Title
- pass ss tream as parameter c++
- Category
- C++
- Title
- C++ If
- Category
- C++
- Title
- c++ vector lower_bound index
- Category
- C++
- Title
- modular exponentiation c++
- Category
- C++
- Title
- how to get input from the console in c++
- Category
- C++
- Title
- how do for loops on c++
- Category
- C++
- Title
- c++ get type name of object
- Category
- C++
- Title
- Temporary file using MSFT API in cpp
- Category
- C++
- Title
- std string find character c++
- Category
- C++
- Title
- create a dictionary cpp
- Category
- C++
- Title
- passing array to function c++ pointer
- Category
- C++
- Title
- friend function in c++
- Category
- C++
- Title
- c++ raw string
- Category
- C++
- Title
- deque c++
- Category
- C++
- Title
- c++ convert int to double
- Category
- C++
- Title
- never gonna give you up lyrics
- Category
- C++
- Title
- how to find the number of cycles in a graph C++
- Category
- C++
- Title
- delete a double pointer c++
- Category
- C++
- Title
- apple and orange hackerrank solution in c++
- Category
- C++
- Title
- c++ class template
- Category
- C++
- Title
- clear console c++
- Category
- C++
- Title
- convert GLFWwindow* to IntPtr
- Category
- C++
- Title
- rgb(100,100,100,0.5) validation c++
- Category
- C++
- Title
- kruskal's algorithm c++ hackerearth
- Category
- C++
- Title
- initialize map c++
- Category
- C++
- Title
- char* to int in cpp
- Category
- C++
- Title
- insert at position in vector c++
- Category
- C++
- Title
- dijkstra c++ geeksforgeeks using set
- Category
- C++
- Title
- dfenwick tree code c++
- Category
- C++
- Title
- factorial in c++
- Category
- C++
- Title
- initialize 2d array c++
- Category
- C++
- Title
- knapsack
- Category
- C++
- Title
- glfw initialize in c++
- Category
- C++
- Title
- c++ overloaded == operator
- Category
- C++
- Title
- rosrun actionlib_msgs genaction.py
- Category
- C++
- Title
- ue4 c++ overlapping functions cpp setup
- Category
- C++
- Title
- insert function in c++ vector
- Category
- C++
- Title
- stoi c++
- Category
- C++
- Title
- heap sort
- Category
- C++
- Title
- how to find length of string in c++
- Category
- C++
- Title
- find all occurrences of a substring in a string c++
- Category
- C++
- Title
- How to read a file in in C++
- Category
- C++
- Title
- get index of value c++
- Category
- C++
- Title
- how to get os name in c++
- Category
- C++
- Title
- c++ remove element from vector
- Category
- C++
- Title
- c++ function return array
- Category
- C++
- Title
- how to make a n*n 2d dynamic array in c++
- Category
- C++
- Title
- loop through array c++
- Category
- C++
- Title
- arrow operator c++
- Category
- C++
- Title
- c++ yes no question
- Category
- C++
- Title
- registering a new QML type
- Category
- C++
- Title
- merge sort in c++
- Category
- C++
- Title
- create copy of range of string c++
- Category
- C++
- Title
- class is replace by structure
- Category
- C++
- Title
- : error: ‘cont’ cannot be used as a function return (cont(cont-1))/2;
- Category
- C++
- Title
- COnvert string to char * C++
- Category
- C++
- Title
- advanced c++ topics
- Category
- C++
- Title
- length of string c++
- Category
- C++
- Title
- Html tabulation
- Category
- C++
- Title
- hashmap in c++
- Category
- C++
- Title
- msdn parse command line
- Category
- C++
- Title
- char **
- Category
- C++
- Title
- linear search in c++
- Category
- C++
- Title
- compile c++ program
- Category
- C++
- Title
- minmax_element c++
- Category
- C++
- Title
- c++ iterate over vector
- Category
- C++
- Title
- getting a random letter in c++
- Category
- C++
- Title
- residuo en lenguaje c
- Category
- C++
- Title
- c++ random numbers
- Category
- C++
- Title
- if not defined c++
- Category
- C++
- Title
- how to round to nearest whole number unity
- Category
- C++
- Title
- stack function in cpp
- Category
- C++
- Title
- building native binary with il2cpp unity
- Category
- C++
- Title
- c++ set console title
- Category
- C++
- Title
- what does count function do in hashmap
- Category
- C++
- Title
- initialization list c++
- Category
- C++
- Title
- error: ‘memset’ was not declared in this scope in cpp
- Category
- C++
- Title
- inheritance protected in c++
- Category
- C++
- Title
- get elements of 2d array c++
- Category
- C++
- Title
- trovare il valore massimo in un array c++ w3
- Category
- C++
- Title
- stringstream in c++
- Category
- C++
- Title
- char size length c++
- Category
- C++
- Title
- pairs in c++
- Category
- C++
- Title
- C++ sfinae
- Category
- C++
- Title
- first prime numbers less than
- Category
- C++
- Title
- c++ assert
- Category
- C++
- Title
- c++ give options string
- Category
- C++
- Title
- convert stirng to int c++
- Category
- C++
- Title
- linkedlist implementation in c++
- Category
- C++
- Title
- c++ multidimensional vector
- Category
- C++
- Title
- declare vectors c++
- Category
- C++
- Title
- maximum subarray sum equal with K in c++
- Category
- C++
- Title
- substr c++
- Category
- C++
- Title
- binary serach in c++
- Category
- C++
- Title
- matrix eigen c++ example
- Category
- C++
- Title
- how to modulo 10^9+7
- Category
- C++
- Title
- exponenciacion binaria
- Category
- C++
- Title
- lambda operator in c++
- Category
- C++
- Title
- how to make a heap using stl in c++
- Category
- C++
- Title
- how to print nth palindrome number in c++
- Category
- C++