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
More Decks by 自然言語処理研究室
See All by 自然言語処理研究室
データサイエンス14_システム.pdf
jnlp
0
430
データサイエンス13_解析.pdf
jnlp
0
550
データサイエンス12_分類.pdf
jnlp
0
380
データサイエンス11_前処理.pdf
jnlp
0
510
Recurrent neural network based language model
jnlp
0
190
自然言語処理研究室 研究概要(2012年)
jnlp
0
170
自然言語処理研究室 研究概要(2013年)
jnlp
0
130
自然言語処理研究室 研究概要(2014年)
jnlp
0
160
自然言語処理研究室 研究概要(2015年)
jnlp
0
240
Other Decks in Programming
See All in Programming
contenteditable と日本語入力に向き合う
colorful12
0
200
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
160
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
400
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
170
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Unity6 URPによる海底をテーマにしたVJシステムの解説 | Unity Shader 完全に理解した 勉強会
gam0022
0
370
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
0
130
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.7k
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
Un-Boring Meetings
codingconduct
0
460
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Building AI with AI
inesmontani
PRO
1
1.3k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
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