Compare commits

...

10 Commits

Author SHA1 Message Date
66ad6badab forge links updated , an example code hello written in std 20 , .gitignore updated 2025-07-12 17:53:37 +03:00
44ee7c582c experimental2025 initial with hello and fix for .gitignore in the root 2025-07-12 17:32:02 +03:00
Mert Gör
fc31e5e6c1 https://source.masscollabs.xyz/masscollaborationlabs/cpp-dojo 2025-04-15 21:37:29 +03:00
Mert Gör
1319ed762a removed book 2024-07-26 19:02:29 +03:00
Mert Gör
2721733888 Update and Book added 2024-07-26 15:16:11 +03:00
Mert Gör
815bd75dbd Chapter 3. Strings, Vectors, and Arrays page 122 2024-07-03 15:31:35 +03:00
Mert Gör
3386ea589a ChangeLog update 2024-07-01 15:29:12 +03:00
Mert Gör
33d57b7474 local j example test code from the book C++ Primer C++ 11 2024-07-01 15:23:51 +03:00
Mert Gör
56ffdf902c Reused scope example written 2024-06-30 09:07:20 +03:00
Mert Gör
cf0dd37025 ChangeLog update and scope example explained 2024-06-30 02:48:08 +03:00
10 changed files with 53 additions and 116 deletions

7
.gitignore vendored
View File

@@ -92,3 +92,10 @@ flycheck_*.el
# End of https://www.toptal.com/developers/gitignore/api/emacs
# Emacs as IDE for C++
.ccls-cache/
*.swp
*~

View File

@@ -1,5 +1,33 @@
2025-07-12 Mert Gör <hwpplayer1@masscollabs>
* README.md: README links updated
* src/hello.cpp: a hello world example std 20
* README.md: experimental2025 started
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
2024-07-01 hwpplayer1 <hwpplayer1@debian>
* src/local_j.cpp: local j value test code / 2.3. Compound Types page Page 82
2024-06-30 hwpplayer1 <hwpplayer1@debian>
* src/reused_scope.cpp: reused scope example writtenx
* src/scope_example.cpp: scope example sum of 1 to 10 inclusive is explained
* src/if_statement.cpp: if statement explained/code written
2024-06-24 hwpplayer1 <hwpplayer1@debian>

View File

@@ -4,19 +4,23 @@ C++ Training
# Forge Platforms
* https://github.com/hwpplayer1/cpp-dojo
* https://gitlab.com/hwpplayer1/cpp-dojo
* https://git.sr.ht/~mertgor/cpp-dojo
* https://git.vern.cc/hwpplayer1/cpp-dojo
* https://git.disroot.org/hwpplayer1/cpp-dojo
* https://source.masscollabs.xyz/masscollaborationlabs/cpp-dojo
* https://codeberg.org/hwpplayer1/cpp-dojo
* https://git.truvalinux.org.tr/hwpplayer1/cpp-dojo
* https://git.disroot.org/hwpplayer1/cpp-dojo
* https://git.vern.cc/hwpplayer1/cpp-dojo
* https://git.emin.software/hwpplayer1/cpp-dojo
* https://git.truvalinux.org.tr/hwpplayer1/cpp-dojo ( down not working )
* https://git.sr.ht/~mertgor/cpp-dojo
* https://gitlab.com/hwpplayer1/cpp-dojo
* https://github.com/hwpplayer1/cpp-dojo
* and your local reposıtory on your own computer

View File

@@ -1,12 +0,0 @@
#include <iostream>
int main()
{
std::cout << "enter two numbers:" << std::endl;
int value1 = 0, value2 = 0;
std::cin >> value1 >> value2;
std::cout << "The sum of " << value1 << " and " << value2
<< " is " << value1 + value2 << std::endl;
return 0;
}

View File

@@ -1,14 +0,0 @@
#include <iostream>
int main()
{
int sum = 0;
for (int value = 1; value <= 10; ++value)
sum += value;
std::cout << "Sum of 1 to 10 inclusive is "
<< sum << std::endl;
return 0;
}

View File

@@ -1,15 +0,0 @@
#include <iostream>
int main()
{
int sum = 0;
for (int value = 1; value <= 5; ++value)
{
sum += value;
}
std::cout << "Sum of 1 to 10 inclusive is "
<< sum << std::endl;
return 0;
}

View File

@@ -1,8 +1,7 @@
#include <iostream>
int main()
{
std::cout << "Hello World of C++\n";
return 0;
int main() {
std::cout << "hello c++ 20!" << std::endl;
return 0;
}

View File

@@ -1,28 +0,0 @@
#include <iostream>
int main()
{
int currVal = 0, val = 0;
if (std::cin >> currVal)
{
int cnt = 1;
while (std::cin >> val)
{
if (val == currVal)
{
++cnt;
}
else
{
std::cout << currVal << " occurs "
<< cnt << " times " << std::endl;
currVal = val;
cnt = 1;
}
}
std::cout << currVal << " occurs "
<< cnt << " times " << std::endl;
}
return 0;
}

View File

@@ -1,16 +0,0 @@
#include <iostream>
int main()
{
int sum = 0, value = 50;
while(value <= 100)
{
sum += value;
++value;
}
std::cout << "Sum of 50 to 100 inclusive is " << sum << std::endl;
return 0;
}

View File

@@ -1,16 +0,0 @@
#include <iostream>
int main()
{
int sum = 0, value = 1;
while(value <= 10)
{
sum += value;
++value;
}
std::cout << "Sum of 1 to 10 inclusive is " << sum << std::endl;
return 0;
}