Message from C, C++ discussions

January 2020

— What do you mean?

— 

I want a class, library, or tool To encrypt and protect My Source Code I searched on the internet but only found c# tools There is nothing about encryption and protection c++

— Ok sorry

— #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;

int main()
{
vector<int> v;
v.push_back(10);
for(int i:v){
cout<<i;
}

Message permanent page

— What will be it's output?

— Why i'm getting garbage value?

— 10

— Why did you ask?

— What kind of value?
try to add separators between the values
eg

cout << i << "\n";

or
cout << i << " ";

Message permanent page

— Ah wait, there's only one

— Then I have no idea, looks fine

— I'm getting garbage values, why so?