Time is fleeting, the university's journey has come to an end, in the summer vacation, I came to * * * training iOS.
Just arrived here, life is not very accustomed to, but in the teacher's help, I slowly adapted here, here the study atmosphere is very high, in this environment, greatly stimulated my study passion, every day tired a little, but tired very happy, because of their tired value, tired satisfaction, and just came here, the first week contact is C, Because the university has also learned, so the task is not too heavy, has not been particularly tired, the teacher is also very good lectures, very detailed. Very satisfied. Especially the code of Yang Hui triangle, I like it very much, as follows:
#include <stdio.h>
int main ()
{
Double a1=81.29;
Double a2=a1+2;
printf ("The second average score is:%.2f\n", A2);
Gradually increase the triangles
for (int i=1;i<5;i++)
{
for (int j=1;j<5;j++)
{
printf ("*");
if (I==J)
{
printf ("\ n");
Break
}
}
}
for (int m=1;m<4;m++)
{
for (int n=3;n>0;n--)
{
printf ("*");
if (m==n)
{
printf ("\ n");
Break
}
}
}
Two One increase triangle
for (int i1=1;i1<5;i1++)
{
for (int j1=1;j1<8;j1++)
{
printf ("*");
if (2*i1-1==j1)
{
printf ("\ n");
Break
}
}
}
for (int m1=1;m1<4;m1++)
{
for (int n1=5;n1>0;n1--)
{
printf ("*");
if (2*M1-1==N1)
{
printf ("\ n");
Break
}
}
}
Symmetric triangles
for (int i2=1;i2<5;i2++)
{
for (int q=0;q<4;q++)
{
if (i2+q==4)
{
Break
}
printf ("");
}
for (int j2=1;j2<8;j2++)
{
printf ("*");
if (2*I2-1==J2)
{
printf ("\ n");
Break
}
}
}
for (int m2=1;m2<4;m2++)
{
for (int q1=0;q1<4;q1++)
{
if (M2==Q1)
{
Break
}
printf ("");
}
for (int n2=5;n2>0;n2--)
{
printf ("*");
if (2*M2-1==N2)
{
printf ("\ n");
Break
}
}
}
return 0;
}
#include <stdio.h>
int main ()
{
Print star pattern: 7 lines
int count = 1; The number of stars, the initial value is 1
for (int i = 1; I <= 7; i + +) {
for (int j = 1; J <= Count;j + +){//control the number of stars printed on each line
printf ("*");
}
if (I < 4)//First 3 lines are incremented, third loop changes count to 7
{
Count + = 2;
}
if (I >= 4)//i > 3
{
Count-= 2;
}
printf ("\ n"); //The first pattern finishes printing, and the count value becomes-1
}
Count = 1; The number of stars, the initial value is 1
int blank = 3; //space, initial value is 3
for (int i = 1; I <= 7; i + +) {
for (int k = 1;k <=blank;k + +){//Control output spaces
printf ("");
}
for (int j = 1;j <= count;j + +){//Control output *
printf ("*");
}
if (I < 4)
{
Blank--;
Count + = 2;
}
if (i > 3)
{
Blank + +;
Count-= 2;
}
printf ("\ n");
}
return 0;
}
http://www.iphonetrain.com/
650) this.width=650; "style=" margin:0px;padding:0px;border:0px;width:344px;height:467px;vertical-align:top; "src= "Http://a2.qpic.cn/psb?/V10kMFiD3sihPU/ihZm8JkgIBWdWeJMFMhCUUV8Vbil78a5O5ez8hSrSvM!/b/dKFRRm7nLAAA&ek=1 &kp=1&pt=0&bo=wahtaqaaaaabakw!&su=0260861825&sce=0-12-12&rf=2-9 "alt=" dKFRRm7nLAAA& Ek=1&kp=1&pt=0&bo=wahtaqaaa "/>
650) this.width=650; "style=" margin:0px;padding:0px;border:0px;width:621px;height:614px;vertical-align:top; "src= "Http://a2.qpic.cn/psb?/v10kmfid3sihpu/bvbyanjh2xh8n8mjv8b.8pibrcwqvha3zl53i*c0ica!/b/domstm7qlaaa&ek=1 &kp=1&pt=0&bo=bqjmagaaaaadac4!&su=025860481&sce=0-12-12&rf=2-9 "alt=" dOMSTm7qLAAA& Ek=1&kp=1&pt=0&bo=bqjmagaaa "/>
650) this.width=650; "style=" margin:0px;padding:0px;border:0px;width:180px;height:180px;vertical-align:top; "src= "Http://a4.qpic.cn/psb?/v10kmfid3sihpu/zhzytiy9vuz811qpzalhet4mo50m*coajlgylilavya!/b/dedaf2*xpqaa&ek=1 &kp=1&pt=0&bo=tac0aaaaaaafacm!&su=072481521&sce=0-12-12&rf=2-9 "alt=" dEdAf2*xPQAA& Ek=1&kp=1&pt=0&bo=tac0aaaaa "/>
650) this.width=650; "style=" margin:0px;padding:0px;border:0px;width:847px;vertical-align:top; "src="/HTTP/ R.photo.store.qq.com/psb?/v10kmfid3sihpu/qvze.lcysklag.ega5.1x9ws.cokscsdgfgcgh3qrgq!/o/do32sm4clqaa&ek=1 &kp=1&pt=0&bo=gaj0bimdqayfabc!&su=1233375425&sce=0-12-12&rf=2-9 "alt=" dO32Sm4CLQAA& Ek=1&kp=1&pt=0&bo=gaj0bimdq "/>
iOS Tutorial serial One