-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added lab №8 #602
base: Morev_Dmitrii
Are you sure you want to change the base?
added lab №8 #602
Conversation
golang/main.go
Outdated
// fmt.Println("Морев Дмитрий Михайлович") | ||
// laba4.Runlab4() | ||
// laba6.Runlaba6() | ||
// laba7.RunLaba7() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вернуть
golang/laba8/laba8.go
Outdated
fmt.Scan(&StringForFind) | ||
n, _ := SearchingString(name, StringForFind) | ||
if n == 1 { | ||
fmt.Printf("Слово найденно на строке %d", n) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тут всегда 1 строка выглядит странно
golang/laba8/laba8.go
Outdated
fmt.Println("Введите строку, которую хотите найти в файле: ") | ||
var StringForFind string | ||
fmt.Scan(&StringForFind) | ||
n, _ := SearchingString(name, StringForFind) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно только bool возвращать без n и проверять его же
No description provided.