Compare commits
10 Commits
c40c2b4ae9
...
66ad6badab
Author | SHA1 | Date | |
---|---|---|---|
66ad6badab
|
|||
44ee7c582c
|
|||
![]() |
fc31e5e6c1 | ||
![]() |
1319ed762a | ||
![]() |
2721733888 | ||
![]() |
815bd75dbd | ||
![]() |
3386ea589a | ||
![]() |
33d57b7474 | ||
![]() |
56ffdf902c | ||
![]() |
cf0dd37025 |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -92,3 +92,10 @@ flycheck_*.el
|
||||
|
||||
|
||||
# End of https://www.toptal.com/developers/gitignore/api/emacs
|
||||
|
||||
|
||||
# Emacs as IDE for C++
|
||||
|
||||
.ccls-cache/
|
||||
*.swp
|
||||
*~
|
28
ChangeLog
28
ChangeLog
@@ -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>
|
||||
|
24
README.md
24
README.md
@@ -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
|
||||
|
||||
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user