Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stacy Demange
exam
Commits
2f96d40b
Commit
2f96d40b
authored
Nov 12, 2020
by
Stacy Demange
Browse files
C_ET_DEBUGUAGE
parent
a62e4c23
Changes
4
Hide whitespace changes
Inline
Side-by-side
code/.vscode/launch.json
0 → 100644
View file @
2f96d40b
{
//
Use
IntelliSense
to
learn
about
possible
attributes.
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit:
https://go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"name"
:
"gcc - Build and debug active file"
,
"type"
:
"cppdbg"
,
"request"
:
"launch"
,
"program"
:
"${fileDirname}/${fileBasenameNoExtension}"
,
"args"
:
[],
"stopAtEntry"
:
false
,
"cwd"
:
"${workspaceFolder}"
,
"environment"
:
[],
"externalConsole"
:
false
,
"MIMode"
:
"gdb"
,
"setupCommands"
:
[
{
"description"
:
"Enable pretty-printing for gdb"
,
"text"
:
"-enable-pretty-printing"
,
"ignoreFailures"
:
true
}
],
"preLaunchTask"
:
"C/C++: gcc build active file"
,
"miDebuggerPath"
:
"/usr/bin/gdb"
}
]
}
\ No newline at end of file
code/.vscode/tasks.json
0 → 100644
View file @
2f96d40b
{
"tasks"
:
[
{
"type"
:
"cppbuild"
,
"label"
:
"C/C++: gcc build active file"
,
"command"
:
"/usr/bin/gcc"
,
"args"
:
[
"-g"
,
"${file}"
,
"-o"
,
"${fileDirname}/${fileBasenameNoExtension}"
],
"options"
:
{
"cwd"
:
"/usr/bin"
},
"problemMatcher"
:
[
"$gcc"
],
"group"
:
"build"
,
"detail"
:
"Generated task by Debugger"
},
{
"type"
:
"cppbuild"
,
"label"
:
"C/C++: gcc build active file"
,
"command"
:
"/usr/bin/gcc"
,
"args"
:
[
"-g"
,
"${file}"
,
"-o"
,
"${fileDirname}/${fileBasenameNoExtension}"
],
"options"
:
{
"cwd"
:
"/usr/bin"
},
"problemMatcher"
:
[
"$gcc"
],
"group"
:
{
"kind"
:
"build"
,
"isDefault"
:
true
},
"detail"
:
"compiler: /usr/bin/gcc"
}
],
"version"
:
"2.0.0"
}
\ No newline at end of file
code/Numbers
0 → 100755
View file @
2f96d40b
File added
code/Numbers.c
View file @
2f96d40b
...
...
@@ -9,7 +9,7 @@ void primes(int numbers[]) {
for
(
i
=
0
;
i
<
TAILLE
;
i
++
)
{
bool
isPrime
=
true
;
int
m
;
for
(
m
=
1
;
m
<
numbers
[
i
]
;
m
++
)
{
for
(
m
=
2
;
m
<
numbers
[
i
]
;
m
++
)
{
if
(
numbers
[
i
]
%
m
==
0
)
{
isPrime
=
false
;
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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