Update and Book added
This commit is contained in:
parent
815bd75dbd
commit
2721733888
BIN
C++ Primer (5th Edition).pdf
Normal file
BIN
C++ Primer (5th Edition).pdf
Normal file
Binary file not shown.
|
@ -1,3 +1,11 @@
|
|||
2024-07-26 hwpplayer1 <hwpplayer1@debian>
|
||||
|
||||
* src/decleration.cpp: decleration example
|
||||
|
||||
* src/namespace_decleration.cpp: namespace / decleration example
|
||||
|
||||
* C++ Primer (5th Edition).pdf: 3.2. Library string Type page 125
|
||||
|
||||
2024-07-03 hwpplayer1 <hwpplayer1@debian>
|
||||
|
||||
* README.md: Chapter 3. Strings, Vectors, and Arrays page 122
|
||||
|
|
13
src/decleration.cpp
Normal file
13
src/decleration.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <iostream>
|
||||
|
||||
using std::cin;
|
||||
using std::cout; using std::endl;
|
||||
int main()
|
||||
{
|
||||
cout << "Enter two numbers:" << endl;
|
||||
int v1, v2;
|
||||
cin >> v1 >> v2;
|
||||
cout << "The sum of " << v1 << " and " << v2
|
||||
<< " is " << v1 + v2 << endl;
|
||||
return 0;
|
||||
}
|
13
src/namespace_decleration.cpp
Normal file
13
src/namespace_decleration.cpp
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <iostream>
|
||||
|
||||
using std::cin;
|
||||
using std::cout; using std::endl;
|
||||
int main()
|
||||
{
|
||||
cout << "Enter two numbers:" << endl;
|
||||
int v1, v2;
|
||||
cin >> v1 >> v2;
|
||||
cout << "The sum of " << v1 << " and " << v2
|
||||
<< " is " << v1 + v2 << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user