Horje
find out if it is the last iteration of the for loop c++ Code Example
find out if it is the last iteration of the for loop c++
int Amount = 5;

for (int i = 0; i < Amount; i++) 
{

	bool IsLastIteration = i == (Amount-1);

}




Cpp

Related
php string Code Example php string Code Example
online converter c++ to c Code Example online converter c++ to c Code Example
how to use getline function inc Code Example how to use getline function inc Code Example
convert std vector to array Code Example convert std vector to array Code Example
Print value of data in c++ Code Example Print value of data in c++ Code Example

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