Horje
vector übergeben c++ Code Example
vector übergeben c++
// Übergabe als Zeiger
void ZeigerFunktion(std::vector<Typ> *Vektor)
{
    Vektor->size();  // Zugriff mit ->
}

// Übergabe als Referenz
void RefFunktion(std::vector<Typ> &Vektor)
{
    Vektor.size();  // normaler Zugriff mit .
}
vector übergeben c++
// Aufruf
std::vector<Typ> V;
ZeigerFunktion(&V);
RefFunktion(V);




Cpp

Related
The program must enter a natural number n from the console and find the number previous to n that is not divisible by 2 , 3 and 5 . Code Example The program must enter a natural number n from the console and find the number previous to n that is not divisible by 2 , 3 and 5 . Code Example
Anagram solution in c++ Code Example Anagram solution in c++ Code Example
online ide c++ Code Example online ide c++ Code Example
codeforces Pangram in c++ Code Example codeforces Pangram in c++ Code Example
Lambda capture as const cpp Code Example Lambda capture as const cpp Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10