Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
word2vec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
35
Issues
35
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DESHPANDE SRIJAY PARAG
word2vec
Commits
62614147
Commit
62614147
authored
Jul 30, 2013
by
tmikolov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed gets() function
parent
c29418ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
distance.c
distance.c
+10
-2
No files found.
distance.c
View file @
62614147
...
...
@@ -62,7 +62,15 @@ int main(int argc, char **argv) {
for
(
a
=
0
;
a
<
N
;
a
++
)
bestd
[
a
]
=
0
;
for
(
a
=
0
;
a
<
N
;
a
++
)
bestw
[
a
][
0
]
=
0
;
printf
(
"Enter word or sentence (EXIT to break): "
);
gets
(
st1
);
a
=
0
;
while
(
1
)
{
st1
[
a
]
=
fgetc
(
stdin
);
if
((
st1
[
a
]
==
'\n'
)
||
(
a
>=
max_size
-
1
))
{
st1
[
a
]
=
0
;
break
;
}
a
++
;
}
if
(
!
strcmp
(
st1
,
"EXIT"
))
break
;
cn
=
0
;
b
=
0
;
...
...
@@ -124,4 +132,4 @@ int main(int argc, char **argv) {
for
(
a
=
0
;
a
<
N
;
a
++
)
printf
(
"%50s
\t\t
%f
\n
"
,
bestw
[
a
],
bestd
[
a
]);
}
return
0
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment