c++ - incompatible types in assignment of char? -


I am getting an error with this code 'Incomparable type [4] for all four for assignment [13]' I It can not figure out how to start these arrays and do it. Basically, this program uses the ISBN code (4 sets of integers and creates a string with '-' between each number with each straight) and confirms that they are correct. This program uses class ISBN and a main function that loads the actual IBN code and tries to use Class ISBN to check them. What do I have here

  Class ISBN {Private: Four groups [6]; Four publishers [8]; Four books [8]; Four checks; Four ISBNs [13]; Char compute_check (); Public: ISBN (); ISBN (four NIBNBC []); ISBN (four groups [], four publishers [], four books [], four checks); Bull valid (); Char * (); Zero print (Ostream and O); }; ISBN: ISBN (four NIBBN []): ISBN (NISBN) {}  

The program loads these ISBN numbers and then prints and using the following ISBNs as follows: Tested by ..

Streaky (ISBN [index ++], "1-57676-074-X"); ISBN ISBN (ISBN) [I]); Isbn.print (court); If (isbn.valid ())

I am having trouble changing the ISBN code to the ISBN class so that each of these functions can be operated. Any help much appreciated! Thanks!

this:

  ISBN :: ISBN (four newisbn [] ): Isbn (newisbn) {}  

does not do what you want, despite what you have been told, arrays are not the same with pointers - the constructor indicator here (form an array Hidden in it) and trying to use it to start a real array. You need:

ISBN :: ISBN (four NIBNBC []) {STRPP (ISBN, NIISBN); }

I would also suggest checking the std :: string class for its normal string processing requirements.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -