{
Static internal inventory quantity;
String name;
String book number;
String unit price;
}
Or:
# include & ltiostream & gt
# include & lt string & gt
Use namespace std
Classroom books
{
Public:
Book(){}
Book (string bookname, string author, intaccount);
~ Book(){ };
Int account;
void Book::setbook(string bkname,string aut,int acc)
{
bookname = bkname
Author = aut
ACC = ACC;
Cout & lt& lt "Title:"
Cout & lt& lt "Author:"
Cout & lt& lt "Monthly sales:"
Book obj1(C Language Programming, Tan Haoqiang, 800), obj2.
obj 1 . print();
Obj 2。 Setbook (New Thinking of C++Design, Backstreet, 300);
obj 2 . print();
System ("suspended");
}
Extended data:
By default, Excel uses A 1 reference style, with reference letters to identify columns (from A to IV, *** 256 columns, note: the maximum number of columns is different in different versions) and reference numbers to identify rows (from 1 to 65536). These letters and numbers are called line numbers and column labels. To refer to a cell, enter a column label and a row number. For example, B2 refers to the cell at the intersection of column B and row 2.
You can also use a reference style that counts both rows and columns on a worksheet. The R 1C 1 reference style is very useful for calculating rows and columns located in macros. In the R 1C 1 style, Excel points out the positions of cells with row numbers after r and column numbers after c ... For example, R2C3 is equivalent to C2 of the A 1 reference style, and refers to the cell at the intersection of row 2 and column 3 (that is, C).
Baidu encyclopedia-cells