[Error] cannot convert 'char*' to 'int*' for argument '2' to 'void addUser(char*, int*, int)'
时间: 2024-05-25 13:19:30 浏览: 155
无法从 int? 转换为 int 运行时出现错误
This error message is indicating that there is a problem with the data types of the arguments being passed to the function `addUser`. The second argument is expected to be a pointer to an integer (`int*`), but instead a pointer to a character (`char*`) is being passed.
To resolve this error, you need to make sure that the second argument passed to `addUser` is a pointer to an integer. If you intended to pass a string as the first argument, you may need to update the function definition to accept a `char*` instead of an `int*`.
阅读全文