Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
基礎情報処理演習 (9)配列
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
自然言語処理研究室
November 02, 2012
Programming
1
7.6k
基礎情報処理演習 (9)配列
自然言語処理研究室
November 02, 2012
Tweet
Share
More Decks by 自然言語処理研究室
See All by 自然言語処理研究室
データサイエンス14_システム.pdf
jnlp
0
400
データサイエンス13_解析.pdf
jnlp
0
510
データサイエンス12_分類.pdf
jnlp
0
360
データサイエンス11_前処理.pdf
jnlp
0
480
Recurrent neural network based language model
jnlp
0
140
自然言語処理研究室 研究概要(2012年)
jnlp
0
150
自然言語処理研究室 研究概要(2013年)
jnlp
0
110
自然言語処理研究室 研究概要(2014年)
jnlp
0
140
自然言語処理研究室 研究概要(2015年)
jnlp
0
220
Other Decks in Programming
See All in Programming
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
CSC307 Lecture 05
javiergs
PRO
0
490
CSC307 Lecture 08
javiergs
PRO
0
660
Rust 製のコードエディタ “Zed” を使ってみた
nearme_tech
PRO
0
140
Fluid Templating in TYPO3 14
s2b
0
130
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
600
組織で育むオブザーバビリティ
ryota_hnk
0
170
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
1
230
React 19でつくる「気持ちいいUI」- 楽観的UIのすすめ
himorishige
11
5.9k
Vibe codingでおすすめの言語と開発手法
uyuki234
0
220
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
290
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
12
6.4k
Featured
See All Featured
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Raft: Consensus for Rubyists
vanstee
141
7.3k
For a Future-Friendly Web
brad_frost
182
10k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
270
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
150
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
55
Testing 201, or: Great Expectations
jmmastey
46
8k
RailsConf 2023
tenderlove
30
1.3k
Transcript
基礎情報処理演習 (9) 配列 山本和英 長岡技術科学大学 1
配列の宣言 int a[10]; double b[20]; int a[10]とは、10要素の配列 a[0]~ a[9]が作られるのであって、a[0]~a[10] を作るという意味ではないので注意!
2
宣言時に初期化も一緒にできる int a[5] = {11, 12, 13, 14, 15}; int
b[] = {301, 302, 303}; ただし、こういう書き方(一気に代入)ができるのは 初期化の時だけ。 3 要素数を省略すると 勝手に数えて補完してくれる
多次元配列 int spc[2][3]; double grid[10][10][10]; 配列は1次元だけでなく、何次元の配列も作 ることができる。 4
配列はいつ使うか? ・ 単に多くの「箱」が必要、というだけでなく、 ・ それらの箱に対して同じ(ような)処理を行う 場合がほとんどである。 つまり、配列は繰り返しとセットになる場合が多 い。よって a[3] =
1; のように配列の要素 が数字になることはほとんどなく、a[k] = 1; のように繰り返しの変数になることが多い。 5