added more code
This commit is contained in:
16
CPE455/lab02/.vscode/c_cpp_properties.json
vendored
Normal file
16
CPE455/lab02/.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "linux-gcc-x64",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**"
|
||||
],
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
"cStandard": "${default}",
|
||||
"cppStandard": "${default}",
|
||||
"intelliSenseMode": "linux-gcc-x64",
|
||||
"compilerArgs": []
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
28
CPE455/lab02/.vscode/launch.json
vendored
Normal file
28
CPE455/lab02/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "C/C++ Runner: Debug Session",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"args": [
|
||||
""
|
||||
],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "/home/student/anw0044/CPE455/lab02",
|
||||
"environment": [],
|
||||
"program": "/home/student/anw0044/CPE455/lab02/build/Debug/outDebug",
|
||||
"internalConsoleOptions": "openOnSessionStart",
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "/usr/bin/gdb",
|
||||
"externalConsole": false,
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing for gdb",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
30
CPE455/lab02/.vscode/settings.json
vendored
Normal file
30
CPE455/lab02/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"C_Cpp_Runner.cCompilerPath": "/usr/bin/gcc",
|
||||
"C_Cpp_Runner.cppCompilerPath": "/usr/bin/g++",
|
||||
"C_Cpp_Runner.debuggerPath": "/usr/bin/gdb",
|
||||
"C_Cpp_Runner.cStandard": "",
|
||||
"C_Cpp_Runner.cppStandard": "",
|
||||
"C_Cpp_Runner.msvcBatchPath": "",
|
||||
"C_Cpp_Runner.warnings": [
|
||||
"-Wall",
|
||||
"-Wextra",
|
||||
"-Wpedantic"
|
||||
],
|
||||
"C_Cpp_Runner.enableWarnings": true,
|
||||
"C_Cpp_Runner.warningsAsError": false,
|
||||
"C_Cpp_Runner.compilerArgs": [],
|
||||
"C_Cpp_Runner.linkerArgs": [],
|
||||
"C_Cpp_Runner.includePaths": [],
|
||||
"C_Cpp_Runner.includeSearch": [
|
||||
"*",
|
||||
"**/*"
|
||||
],
|
||||
"C_Cpp_Runner.excludeSearch": [
|
||||
"**/build",
|
||||
"**/build/**",
|
||||
"**/.*",
|
||||
"**/.*/**",
|
||||
"**/.vscode",
|
||||
"**/.vscode/**"
|
||||
]
|
||||
}
|
1
CPE455/lab02/input.txt
Normal file
1
CPE455/lab02/input.txt
Normal file
@ -0,0 +1 @@
|
||||
AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHH
|
BIN
CPE455/lab02/keyboardbo
Executable file
BIN
CPE455/lab02/keyboardbo
Executable file
Binary file not shown.
27
CPE455/lab02/keyboardbo.cpp
Normal file
27
CPE455/lab02/keyboardbo.cpp
Normal file
@ -0,0 +1,27 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main( int argc, char* argv[ ] )
|
||||
{
|
||||
char a = 'A';
|
||||
char b = 'B';
|
||||
char buffer[4];
|
||||
char c = 'C';
|
||||
char d = 'D';
|
||||
|
||||
cout << "Enter up to 4 characters now: " << endl;
|
||||
cin >> buffer;
|
||||
cout << endl;
|
||||
|
||||
cout << "buff = " << buffer << endl;
|
||||
cout << "a = " << a << endl;
|
||||
cout << "b = " << b << endl;
|
||||
cout << "c = " << c << endl;
|
||||
cout << "d = " << d << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
2053
CPE455/lab02/lab02.txt
Normal file
2053
CPE455/lab02/lab02.txt
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user