Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
基礎情報処理演習 (9)配列
Search
自然言語処理研究室
November 02, 2012
Programming
7.6k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
基礎情報処理演習 (9)配列
自然言語処理研究室
November 02, 2012
Transcript
5 slides
基礎情報処理演習 (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
More Decks by 自然言語処理研究室
See All by 自然言語処理研究室
データサイエンス14_システム.pdf
jnlp
0
430
データサイエンス13_解析.pdf
jnlp
0
560
データサイエンス12_分類.pdf
jnlp
0
390
データサイエンス11_前処理.pdf
jnlp
0
520
Recurrent neural network based language model
jnlp
0
200
自然言語処理研究室 研究概要(2012年)
jnlp
0
180
自然言語処理研究室 研究概要(2013年)
jnlp
0
140
自然言語処理研究室 研究概要(2014年)
jnlp
0
160
自然言語処理研究室 研究概要(2015年)
jnlp
0
250
Other Decks in Programming
See All in Programming
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
5.7k
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
1
2k
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
130
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
290
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
1
440
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
570
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
160
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.2k
GraphQL の onError と Nullability のこれから
quramy
0
220
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
250
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
529
40k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
620
Accessibility Awareness
sabderemane
1
300
From π to Pie charts
rasagy
1
450
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
370
Code Review Best Practice
trishagee
74
20k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
900
We Have a Design System, Now What?
morganepeng
55
8.4k
It's Worth the Effort
3n
188
29k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
560
Done Done
chrislema
187
17k
Designing Experiences People Love
moore
143
24k