“Actual or formal argument lists differs in length”

You try to instantiate an object of the Friends class like this: The class does not have a constructor that takes parameters. You should either add the constructor, or create the object using the constructor that does exist and then use the set-methods. For example, instead of the above:

Reading CSV file and storing values into an array

I am trying to read a *.csv-file. The *.csv-file consist of two columns separated by semicolon (“;“). I am able to read the *.csv-file using StreamReader and able to separate each line by using the Split() function. I want to store each column into a separate array and then display it. Is it possible to … Read more

I’m getting “Invalid Initializer”, what am I doing wrong?

You can’t initialise revS in that manner, you need a very specific thing to the right of the =. From C11 6.7.9 Initialization /14, /16: 14/ An array of character type may be initialized by a character string literal or UTF−8 string literal, optionally enclosed in braces. Successive bytes of the string literal (including the … Read more

Sorting arrays in javascript by object key value

Use Array.prototype.sort(), eg The sort() method accepts a comparator function. This function accepts two arguments (both presumably of the same type) and it’s job is to determine which of the two comes first. It does this by returning an integer Negative (less-than zero): The first argument comes first Positive (greater-than zero): The second argument comes first Zero: The arguments are considered … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)