mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: reorganize
This commit is contained in:
parent
e57804e6c2
commit
a5c0d89c71
26
examples/.gitignore
vendored
26
examples/.gitignore
vendored
@ -1,23 +1,19 @@
|
||||
/cli
|
||||
/hello_world
|
||||
/fibonacci
|
||||
/fizz_buzz
|
||||
/hanoi
|
||||
/hello_v_js
|
||||
/hello_world
|
||||
/json
|
||||
/links_scraper
|
||||
/log
|
||||
/news_fetcher
|
||||
/rune
|
||||
/terminal_control
|
||||
/nbody
|
||||
/spectral
|
||||
/database/mysql
|
||||
/hello_v_js
|
||||
/fibonacci
|
||||
/sqlite
|
||||
/news_fetcher
|
||||
/path_tracing
|
||||
/gg2
|
||||
/quick_sort
|
||||
/random_ips
|
||||
/rune
|
||||
/spectral
|
||||
/terminal_control
|
||||
|
||||
*.ppm
|
||||
empty_gg_freetype
|
||||
game_of_life/life_gg
|
||||
random_ips
|
||||
vweb/vweb_example
|
||||
x64/hello_world
|
||||
|
2
examples/database/.gitignore
vendored
Normal file
2
examples/database/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
mysql
|
||||
sqlite
|
@ -1,21 +1,18 @@
|
||||
fn main() {
|
||||
mut s := ''
|
||||
|
||||
for n in 1..101 {
|
||||
if n % 3 == 0 {
|
||||
s += 'Fizz'
|
||||
}
|
||||
|
||||
if n % 5 == 0 {
|
||||
s += 'Buzz'
|
||||
}
|
||||
|
||||
if s == '' {
|
||||
println(n)
|
||||
} else {
|
||||
println(s)
|
||||
}
|
||||
|
||||
s = ''
|
||||
}
|
||||
mut s := ''
|
||||
for n in 1 .. 101 {
|
||||
if n % 3 == 0 {
|
||||
s += 'Fizz'
|
||||
}
|
||||
if n % 5 == 0 {
|
||||
s += 'Buzz'
|
||||
}
|
||||
if s == '' {
|
||||
println(n)
|
||||
}
|
||||
else {
|
||||
println(s)
|
||||
}
|
||||
s = ''
|
||||
}
|
||||
}
|
||||
|
1
examples/game_of_life/.gitignore
vendored
1
examples/game_of_life/.gitignore
vendored
@ -1 +1,2 @@
|
||||
life
|
||||
life_gg
|
||||
|
2
examples/gg/.gitignore
vendored
Normal file
2
examples/gg/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/gg_freetype
|
||||
/gg2
|
@ -1,5 +1,5 @@
|
||||
fn main() {
|
||||
for i in 0..3 {
|
||||
println('Hello from V.js')
|
||||
}
|
||||
for i in 0 .. 3 {
|
||||
println('Hello from V.js')
|
||||
}
|
||||
}
|
||||
|
@ -1,2 +1 @@
|
||||
println('Hello, World!')
|
||||
|
||||
|
1
examples/sdl/basic_window/.gitignore
vendored
Normal file
1
examples/sdl/basic_window/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
main
|
1
examples/sdl/tvintris/.gitignore
vendored
Normal file
1
examples/sdl/tvintris/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
tvintris
|
2
examples/vweb/.gitignore
vendored
2
examples/vweb/.gitignore
vendored
@ -1 +1 @@
|
||||
test_app
|
||||
vweb_example
|
||||
|
1
examples/x64/.gitignore
vendored
Normal file
1
examples/x64/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
hello_world
|
Loading…
Reference in New Issue
Block a user