Coding help in C++

am new to coding in c++ and i was wondering if anyone is willing to help m write a code that does the following

function in c++ which takes two arguments. A string and an integer.

The function should then check if the length of the string passed as an argument equals the passed integer.

It should then return a struct.

The struct should have two fields. A string for an error message and a Boolean variable which is true when the comparison above is true or false respectively.

1 Like