Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
4e2e644c
Commit
4e2e644c
authored
Jan 27, 2009
by
jbeder
Browse files
Included <cstring> for strcmp
parent
d44502c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
yaml-reader/main.cpp
yaml-reader/main.cpp
+2
-1
No files found.
yaml-reader/main.cpp
View file @
4e2e644c
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#include "tests.h"
#include "tests.h"
#include <fstream>
#include <fstream>
#include <iostream>
#include <iostream>
#include <cstring>
void
run
()
void
run
()
{
{
...
@@ -27,7 +28,7 @@ int main(int argc, char **argv)
...
@@ -27,7 +28,7 @@ int main(int argc, char **argv)
{
{
bool
verbose
=
false
;
bool
verbose
=
false
;
for
(
int
i
=
1
;
i
<
argc
;
i
++
)
{
for
(
int
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
strcmp
(
argv
[
i
],
"-v"
)
==
0
)
if
(
std
::
strcmp
(
argv
[
i
],
"-v"
)
==
0
)
verbose
=
true
;
verbose
=
true
;
}
}
...
...
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