c++ thread tutorial with sample codes

C++ Array of Ints / Integers

#include <array>std::array<int,4> myGrades = {86,80,64,91}; Sample c++ Array of ints Code // std::array usage std::array<int,4> myGrades = {86,80,64,91}; #include <iostream> #include <array> using namespace std; int main(){ float sum = 0.0f; std::array<int,9> myGrades = {86,80,64,91,52,59,88,69,75}; for ( unsigned int i = 0; i < myGrades.size();i++){ std::cout <<...
Read More
Top