So, I am trying to emigrate from Windows to Linux. Today I am trying to encode and compile files using Emacs instead of the Windows IDE. This is my sample code:
#include <iostream> using namespace std; int main() { cout << "HELLO" << endl; }
What I compiled from emacs using esc-x-> compile-> g ++ -o hello hello.cpp
From the terminal, I said hello using './hello'. Then I changed my code to 'cout <<"HOLA FFS" <enp; "and tried to compile with g ++ -o hello hello.cpp again. The compilation ended without errors, but when I tried to say hi from the terminal, the output was" HELLO ", not" HOLA FFS ".
Why is this done?
source share