Update and Book added

This commit is contained in:
Mert Gör 🇹🇷 2024-07-26 15:16:11 +03:00
parent 815bd75dbd
commit 2721733888
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
4 changed files with 34 additions and 0 deletions

Binary file not shown.

View File

@ -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
View 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;
}

View 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;
}