Skip to content

added lab №8#602

Open
moreqqq wants to merge 3 commits intoISUCT:Morev_Dmitriifrom
moreqqq:laba8
Open

added lab №8#602
moreqqq wants to merge 3 commits intoISUCT:Morev_Dmitriifrom
moreqqq:laba8

Conversation

@moreqqq
Copy link
Copy Markdown

@moreqqq moreqqq commented Dec 23, 2024

No description provided.

Comment thread golang/main.go Outdated
Comment on lines +8 to +11
// fmt.Println("Морев Дмитрий Михайлович")
// laba4.Runlab4()
// laba6.Runlaba6()
// laba7.RunLaba7()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вернуть

Comment thread golang/laba8/laba8.go Outdated
fmt.Scan(&StringForFind)
n, _ := SearchingString(name, StringForFind)
if n == 1 {
fmt.Printf("Слово найденно на строке %d", n)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут всегда 1 строка выглядит странно

Comment thread golang/laba8/laba8.go Outdated
fmt.Println("Введите строку, которую хотите найти в файле: ")
var StringForFind string
fmt.Scan(&StringForFind)
n, _ := SearchingString(name, StringForFind)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно только bool возвращать без n и проверять его же

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants