02-26-hf
This commit is contained in:
33
02-19/.vscode/launch.json
vendored
Normal file
33
02-19/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
// 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": "(gdb) Launch",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
},
|
||||
{
|
||||
"description": "Set Disassembly Flavor to Intel",
|
||||
"text": "-gdb-set disassembly-flavor intel",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
6
02-19/.vscode/settings.json
vendored
Normal file
6
02-19/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"iostream": "cpp"
|
||||
},
|
||||
"cmake.configureOnOpen": false
|
||||
}
|
||||
46
02-19/.vscode/tasks.json
vendored
Normal file
46
02-19/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"type": "shell",
|
||||
"label": "C/C++: g++ build active file",
|
||||
"command": "/usr/bin/g++",
|
||||
"args": [
|
||||
"-g",
|
||||
"${fileDirname}/*.cpp",
|
||||
"-o",
|
||||
"${fileDirname}/${fileBasenameNoExtension}"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "/usr/bin"
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$gcc"
|
||||
],
|
||||
"group": "build"
|
||||
},
|
||||
{
|
||||
"type": "cppbuild",
|
||||
"label": "C/C++: cpp build active file",
|
||||
"command": "/usr/bin/cpp",
|
||||
"args": [
|
||||
"-fdiagnostics-color=always",
|
||||
"-g",
|
||||
"${file}",
|
||||
"-o",
|
||||
"${fileDirname}/${fileBasenameNoExtension}"
|
||||
],
|
||||
"options": {
|
||||
"cwd": "${fileDirname}"
|
||||
},
|
||||
"problemMatcher": [
|
||||
"$gcc"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
},
|
||||
"detail": "Task generated by Debugger."
|
||||
}
|
||||
]
|
||||
}
|
||||
6
02-19/App.cpp
Normal file
6
02-19/App.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{ //lemaradt idezojel
|
||||
std::cout << print << std::endl;
|
||||
}
|
||||
6
02-19/App10.cpp
Normal file
6
02-19/App10.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "print" + 5 << std::endl; //nins jol hozzafuzve a szam a stringhez
|
||||
}
|
||||
6
02-19/App2.cpp
Normal file
6
02-19/App2.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{ //lemaradt ;
|
||||
std::cout << "print" << std::endl
|
||||
}
|
||||
4
02-19/App3.cpp
Normal file
4
02-19/App3.cpp
Normal file
@@ -0,0 +1,4 @@
|
||||
int main()
|
||||
{ //nincs include
|
||||
std::cout << "Print" << std::endl;
|
||||
}
|
||||
11
02-19/App4.cpp
Normal file
11
02-19/App4.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <iostream>
|
||||
|
||||
int sum(int a, int b){
|
||||
//hianyzik a return
|
||||
int osszeg = a + b;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
sum(2,3);
|
||||
}
|
||||
9
02-19/App5.cpp
Normal file
9
02-19/App5.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
void Print(){ // void-nal visszaadok erteket
|
||||
return "Print";
|
||||
}
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
Print();
|
||||
}
|
||||
6
02-19/App6.cpp
Normal file
6
02-19/App6.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{ //nem letezo valtozo printelese
|
||||
std::cout << x << std::cout;
|
||||
}
|
||||
7
02-19/App7.cpp
Normal file
7
02-19/App7.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
x = 0;
|
||||
std::cout << x << std::endl; //valtozo nincs tipusadas
|
||||
}
|
||||
6
02-19/App8.cpp
Normal file
6
02-19/App8.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
int x = "szia"; //valtozonak rossz ertek van adva
|
||||
}
|
||||
10
02-19/App9.cpp
Normal file
10
02-19/App9.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
int x = 0;
|
||||
|
||||
{
|
||||
int x = 1; //valtozo ujradefinialas
|
||||
}
|
||||
}
|
||||
0
02-26-hf/App.cpp
Normal file
0
02-26-hf/App.cpp
Normal file
Reference in New Issue
Block a user