I have this problem that Visual C++ does not let me use the method parameter as the size for an array I want to create. What am I doing wrong and how can this be done?
void feld_links_rotieren(char a[], unsigned int n, unsigned int shift)
{
shift = shift % n;
if (shift == 0)
{
// Verschiebung um 0 Plätze ist zulässig. Funktion wird sofort verlassen.
return;
}
// Ersten Teil isolieren
char first_half[shift];
...