experimental2025 initial with hello and fix for .gitignore in the root
This commit is contained in:
		
							
								
								
									
										7
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -92,3 +92,10 @@ flycheck_*.el
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# End of https://www.toptal.com/developers/gitignore/api/emacs
 | 
					# End of https://www.toptal.com/developers/gitignore/api/emacs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Emacs as IDE for C++
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.ccls-cache/
 | 
				
			||||||
 | 
					*.swp
 | 
				
			||||||
 | 
					*~
 | 
				
			||||||
@@ -1,3 +1,7 @@
 | 
				
			|||||||
 | 
					2025-07-12  Mert Gör  <hwpplayer1@masscollabs>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* README.md: experimental2025 started
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2024-07-26  hwpplayer1  <hwpplayer1@debian>
 | 
					2024-07-26  hwpplayer1  <hwpplayer1@debian>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* src/decleration.cpp: decleration example
 | 
						* src/decleration.cpp: decleration example
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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,13 +0,0 @@
 | 
				
			|||||||
#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;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -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>
 | 
					#include <iostream>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int main()
 | 
					int main() {
 | 
				
			||||||
{
 | 
					  std::cout << "hello c++ 20!" << std::endl;
 | 
				
			||||||
  std::cout << "Hello World of C++\n";
 | 
					
 | 
				
			||||||
  
 | 
					  return  0;
 | 
				
			||||||
  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,15 +0,0 @@
 | 
				
			|||||||
#include <iostream>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int i = 42;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int main()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    int i = 100;
 | 
					 | 
				
			||||||
    std::cout << "int i local i is "
 | 
					 | 
				
			||||||
              << i << std::endl;
 | 
					 | 
				
			||||||
    int j = i;
 | 
					 | 
				
			||||||
    std::cout << "int j local j is "
 | 
					 | 
				
			||||||
              << i << std::endl;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return 0;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,13 +0,0 @@
 | 
				
			|||||||
#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;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,18 +0,0 @@
 | 
				
			|||||||
#include <iostream>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int reused = 42;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int main()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    int unique = 0;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    std::cout << reused << " " << unique << std::endl;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    int reused = 0;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    std::cout << reused << " " << unique << std::endl;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    std::cout << ::reused << " " << unique << std::endl;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    return 0;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,14 +0,0 @@
 | 
				
			|||||||
#include <iostream>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
int main()
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    int sum = 0;
 | 
					 | 
				
			||||||
    for (int val = 0; val <= 10; ++val)
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
        sum += val;
 | 
					 | 
				
			||||||
        std::cout << "Sum of 1 to 10 inclusive is "
 | 
					 | 
				
			||||||
                  << sum << 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