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
The Rails Doctrine Decade
koic
2
400
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
530
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
18
18k
AWSに止められる覚悟してますか?
morizo_1984
2
420
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5.1k
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
170
WebRTC映像をAirPlayに対応させる挑戦.pdf
monolithic_adam
0
310
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
390
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
450
海上で動くGoサーバー: goroutineとchannelでさばく航行データストリーム
atsuki_seo
0
960
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
440
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
320
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Faster Mobile Websites
deanohume
310
32k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
530
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Prompt Engineering for Job Search
mfonobong
0
460
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
76k
ラッコキーワード サービス紹介資料
rakko
1
5M
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