| ||||||||||||||||||
I am doing a review for school and I'm having a problem writing a function that creates a new struct and return a pointer to it.// Review program#include <iostream>#include <stdlib.h>#include <string>#include <stdio.h>using namespace std;Book * makeBook(char * title, char * authorFName, char * authorLName, int numOfPages);struct PersonName { char first[50]; char last[50];};struct Book { char title[100]; PersonName author; int numOfPages; | ||||||||||||||||||
|
![Incompatible types in assignment of Incompatible types in assignment of](/uploads/1/2/3/7/123764752/879918788.jpg)
Jun 15, 2017 - Sometimes a character such as an opening parenthesis shouldn't be in the Java. Test.java:78: error: incompatible types return stringBuilder. Of how trying to assign a string to an integer created the “incompatible types. Do not access a variable through a pointer of an incompatible type EXP039. Use only explicitly signed or unsigned char type for numeric values INT007. Do not perform assignments in conditional expressions EXP015.