Skip to content
Snippets Groups Projects
Commit 12ebe276 authored by Anano Lomtadze's avatar Anano Lomtadze
Browse files

Merge branch 'lomtadze'

parents 61d3bfc1 10cd92a0
No related branches found
No related tags found
No related merge requests found
{
// 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-7 - 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-7 build active file",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
\ No newline at end of file
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc-7 build active file",
"command": "/usr/bin/gcc-7",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "/usr/bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "Generated task by Debugger"
}
],
"version": "2.0.0"
}
\ No newline at end of file
File added
code/Numbers.c 100644 → 100755
......@@ -9,13 +9,13 @@ 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;
}
}
if (isPrime)
printf("%i est un nombre premier\n", numbers[i]);
}
......@@ -28,4 +28,4 @@ int main() {
array[i] = i+3;
primes(array);
}
\ No newline at end of file
}
commit 0 → 100644
Supprimer tous les fichiers se terminant par*.txt dans le dossier txt.
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch lomtadze
# Changes to be committed:
# deleted: txt/arrow.txt
# deleted: txt/piege.txt
#
# Untracked files:
# result.res
#
"Letter", "Frequency", "Percentage"
"A", 24373121, 8.1
"B", 4762938, 1.6
"C", 8982417, 3.0
"D", 10805580, 3.6
script executé
toget 0 → 100644
File added
Ce gars est une flêche
Attention peut-être y-a-t-il un piège ? Avez vous pensé à effacer TOUS les fichier se terminant par .txt ?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment