To read a string into a ZZX object you need to write your own function. This depends on how you actually get your input. If you read it from a file, you need to get the numbers from the string and set them via the [] operator. If you input it via the console, you can skip the string and directly build the ZZX object.
Finally you can use this to overload the conv function.
As you can read from your error message: There is no function
conv
that converts a string to a polynomial or the other way around.You can use
<<
on all NTL objects, e.g.To read a string into a
ZZX
object you need to write your own function. This depends on how you actually get your input. If you read it from a file, you need to get the numbers from the string and set them via the[]
operator. If you input it via the console, you can skip the string and directly build theZZX
object.Finally you can use this to overload the
conv
function.