Skip to content

oceanboi1337/ArraysStartAt1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ArraysStartAt1

Movement to make arrays start at 1

Use this code when working with arrays, arrays has been oppressed by the brogrammers for far too long and we have to do something about it.

Arrays shouldnt start @ 0 they should start @ 1

support my movement, use the code

template <class T>
T ArrayGetAt(T array[], int index)
{
	index--;
	return array[index];
}

int main()
{
	int array[3] = {1, 2, 3};
	int first = ArrayGetAt<int>(array, 1);
	printf("%d\n", first);
	return 0;
}
  • xXx_MLG_OceanboiBoi_MLG_xXx
  • Terradice

About

Movement to make arrays start at 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published