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
自然言語処理研究室
November 02, 2012
Programming
7.6k
1
Share
基礎情報処理演習 (9)配列
自然言語処理研究室
November 02, 2012
More Decks by 自然言語処理研究室
See All by 自然言語処理研究室
データサイエンス14_システム.pdf
jnlp
0
410
データサイエンス13_解析.pdf
jnlp
0
530
データサイエンス12_分類.pdf
jnlp
0
370
データサイエンス11_前処理.pdf
jnlp
0
490
Recurrent neural network based language model
jnlp
0
160
自然言語処理研究室 研究概要(2012年)
jnlp
0
160
自然言語処理研究室 研究概要(2013年)
jnlp
0
120
自然言語処理研究室 研究概要(2014年)
jnlp
0
140
自然言語処理研究室 研究概要(2015年)
jnlp
0
230
Other Decks in Programming
See All in Programming
The Less-Told Story of Socket Timeouts
coe401_
3
1.1k
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
130
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.2k
Agentic UI in the Frontend: Architectures with Open Standards @JAX 2026 in Mainz
manfredsteyer
PRO
0
110
「OSSがあるなら自作するな」は AI時代も正しいか ── Build vs Adopt の新しい判断基準
kumorn5s
7
2.5k
実用!Hono RPC2026
yodaka
2
310
サプライチェーン攻撃対策「層を重ねて落ちない壁」を10日間で組み上げた話 #TechLeadConf2026
kashewnuts
1
240
Cache-moi si tu peux : patterns et pièges du cache en production - Devoxx France 2026 - Conférence
slecache
0
340
UaaL×Androidアプリのメモリ計測 — Memory Profilerの先へ
rio432
0
140
Terraform言語の静的解析 / static analysis of Terraform language
wata727
1
140
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
450
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
1.8k
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
Become a Pro
speakerdeck
PRO
31
5.9k
Mobile First: as difficult as doing things right
swwweet
225
10k
It's Worth the Effort
3n
188
29k
sira's awesome portfolio website redesign presentation
elsirapls
0
230
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
420
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
280
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
450
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
180
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.7k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.8k
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