Hello everyone,
I am a college student in his second year of learning C++. Last semester we would use Visual Studio to write and compile our code in. This year we use linux, more specifically the Vi editor. We use linux in two ways, either we use Putty in Windows to SSH into Linux and use vi and the "terminal" or we go to our linux lab and use Ubuntu. When using Ubuntu we use gedit to to write/edit our code and we still use the terminal to compile and link (c++ -c and c++ -o respectivly).
I am getting tired of using Vi so I installed Ubuntu on my laptop and now have a dual boot of both Windows and Ubuntu. I did this so I could quickly write code in gedit and test it using a linux terminal when I am not on campus.
Now to my problem, I created a "Hello World" program on my Ubuntu. I had to get c++ to work by getting g++ (i did the sudo apt-get thing...).
I can get my code to compile and to link but when I try to run the excutable, I get nothing, it just returns to the command line.
At school all I have to do is type in the excutable name and I get the program to run however it is meant to run.
Does anyone know what the issue is?
here is my code just incase thats it (i hope not)
#include<iostream>
using namespace std;
int main()
{
cout<<"Hello World!"<<endl;
return 0;
}