What it is the meaning of this error: conversion from ‘char* [40] to non-scalar type ‘std::string

std::strings are much easier to work with than char arrays for beginners. I’d suggest you use them unless there is a reason not to.

There are many issues with the code. See if you can get less code working first. How about one function that you call from main, passing in stings and char array pointers so you can get that skill down.

Browse More Popular Posts

Leave a Comment