K
K
kaktak2552021-07-15 17:04:25
linux
kaktak255, 2021-07-15 17:04:25

Why does the code run before it is saved?

Sitting with linux, compiling with script extension (which has 4 lyama downloads)

#include <iostream>
using namespace std;

int main()
{

    int a(1);
    cout << a << endl;
    return 0;
    
}


In general, I assign the value of the variable a - one, save it manually (ctrl-s), compile in the editor itself (ctrl-b), output the unit ok. Next, I make any changes in the code and compile (ctrl-b) displays the result as if I didn’t change anything

. before compilation , what to do ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SANTA2112, 2021-07-15
@SANTA2112

int a = 1;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question