Home > Back-end >  Kechuang teenager. Sweet old silk. Teenagers python. Teenagers Scratch
Kechuang teenager. Sweet old silk. Teenagers python. Teenagers Scratch

Time:10-02

/*
A new version of the c + + zero introductory NOIP - arrays and strings --
the first lecture
The so-called array, is a set of ordered data
A group of the same type of
A villa in a family, a community living N family
An int variable is an integer, an int array to save a set of integers

Orderly
, in order to facilitate access to each item was expressed with zero sequence number to each item
*/

//instance start
#include
#include

//that array to play
Int main () {

//words hong seven day want to create a method, called dragon 18 zhangs, but all have no, fact so
Char * XLSBZ [18].//only affirms, not initialized, about *, behind talks continue string

//words a day, go out is the dog always after jumping off cliffs, wish it will die, labor dozen you dead dog first, then back to a stick, put the dog killed, a happy, invented a recruit
XLSBZ [8]="dragon put tail".//for individual assignment

//and one day, in a field, bitten by a pack of dogs around, between Scylla and Charybdis, indignation in his heart, suddenly broke four word "to see the dragon in the field"
XLSBZ [2]="to see the dragon in the field";//for the individual assignment, can care about order, literally blind whole

//read an array of items, the day hong seven brag B with several children, tell them, he invented a dragon 18 zhangs, and said the 3 and 9 palms, but remember, for the first time
Printf (" come on, let me show you first hand: % s \ n \ n ", XLSBZ [0]).//the first palm doesn't even have to initialize, so garbled words
Printf (" sorry... , first take a look at the ninth: % s \ n \ n ", XLSBZ [8]);
Printf (" look at the third hand: % s \ n \ n ", XLSBZ [2]).

//at the same time, the seven gourd Eva was born together, the old man for a name, simply use 1,2,3,4,5,6,7 named first, then a
Int HLW [7]=,2,3,4,5,6,7 {1};//that, at the same time is initialized

//later, the old 7 find (a face of injustice, said, I don't want to call 4, can you let me call 88, so they just call me later, he didn't react, agreed to a
HLW [3]=88;//modify the value of the individual, why it is old four to change a name, write 3 here? Because the subscript begins with 0

//access the names of the seven children
Printf (" the eldest brother call: % d \ n \ n ", HLW [0]).
The second call: printf (" % d \ n \ n ", HLW [1]).
Printf (" old three call: % d \ n \ n ", HLW [2]).
Printf (" old four call: % d \ n \ n ", HLW [3]).
Printf (" ite call: % d \ n \ n ", HLW [4]);
Printf (" old six call: % d \ n \ n ", HLW [5]);
Printf (" old seven call: % d \ n \ n ", HLW [6]);
//want to, can use cycle access?
}
Kechuang teenager. Sweet old juvenile kechuang. Sweet old silk. Teenagers python. Scratch kechuang young teenagers. Sweet old silk. Teenagers python. Scratch kechuang young teenagers. Sweet old silk. Teenagers python. Scratch kechuang young teenagers. Sweet old silk. Teenagers python. Teenagers Scratch wire. Teenagers python. Teenagers Scratch
  • Related