原创 3.02-while練習

/*  提示用戶輸入一個正整數n,計算1+2+3+…+n的和  */ #include <stdio.h> int main() {     // 1.提示輸入     printf("請輸入一個正整數:\n");

原创 2.09-sizeof

#include <stdio.h> int main() {     //int size = sizeof(10);     //int size = sizeof 10.9;          int a = 10;

原创 3.03-while練習2

/*  提示用戶輸入一個正整數n,計算1+2+3+…+n的和  */ #include <stdio.h> int main() {     //定義變量保存用戶輸入的整數    int n = 0; // 一定要初

原创 2.08-自增自減

#include <stdio.h> int main() {     /*     int a = 10;          a = a + 1; // 11          a += 1; // 12     

原创 2.17-switch練習

 /*  輸入一個整數score代表分數,根據分數輸出等級(A-E)(用兩種方式)  A:90~100 score/10 == 9、10  B:80~89  score/10 == 8  C:70~79  score/10 ==

原创 4.02-內存存儲細節

/*  字節 變量     內容  ffc1    ffc2 number2 0000 1101  ffc3     0000 0000  ffc4     0000 0000  ffc5     0000 0000

原创 3.13-函數2

#include <stdio.h> /*  參數注意點  1.形式參數:定義函數時函數名後面中的參數,簡稱形參  2.實際參數:調用函數式傳入的具體數據,簡稱實參  3.實參個數必須等於形參個數  4.函數體內部不能定義和

原创 1.2-對象的建立-h

// //  Person.h //  對象的建立 // //  Created by 胡舉 on 15-7-29. //  Copyright (c) 2015年 huju. All rights reserved. //

原创 tableView的基本使用

tableView的基本使用 一、taableView的多選 系統自帶的選擇 // 開啓多選,讓tableView能夠進入編輯狀態 tableView.allowsMultipleSelection = YES;

原创 4.13-數組的內存存儲細節

#include <stdio.h> /*  提示用戶輸入5個學生的成績,算出平均分並且輸出  */ int main() {               // 1.定義一個數組來存儲成績     int score

原创 gitHub提交項目總結

新建工程提交到gitHub等git服務器的步奏 1.配置查找電腦的.ssh key 2.將.ssh key填充至服務器(網站) 3.在服務器(網站)上新建一個項目,最好直接包含有README 和 .gitignore 4.新建項目完成

原创 4.09-char

#include <stdio.h> int main() {     //0000 0000 0000 0000 0000 0000 0000 1001     int a = 9;          // 0100 0

原创 4.12-數組

#include <stdio.h> int main() {     // 使用注意     // 都是正確寫法     //int ages[5] = {10 , 11, 12, 67, 56};     //int

原创 button的基本使用

一、基本使用 -基本使用 //按鈕內部圖片和文字對齊方式(靠左、居中、靠右) btn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

原创 3.16-include的簡單實用

/*  include  1> 作用:拷貝右邊文件的所有內容到#include所在的位置  2> 自定義的文件用"",系統自帶的文件用<>  3> #include <stdio.h>的目的:拷貝printf函數的聲明  */