How to run a program in Kubuntu
by vmelkon from LinuxQuestions.org on (#4XX59)
Hello, I am a noob.
I compiled a very simple program, using Eclipse.
In the DEBUG folder, it generates the program file: WinProjectTest005
If I double click on it, nothing happens.
OS: Kubuntu 18.04.3 LTS (aka Ubuntu 18.04.3 LTS)
I guess the file manager is Dolphin.
On Windows, when you double click on a EXE file, it would popup a cmd window. In Kubuntu nothing happens.
Here is the boring program:
================================
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout<<"!!!Hello World!!!"<<endl; // prints !!!Hello World!!!
cout<<"Enter a value:\n";
cin>>a;
cout<<"\nEnter a value:\n";
cin>>b;
a+=b;
cout<<"\nThe total is = "<<a<<endl;
cin>>a;
return 0;
}


I compiled a very simple program, using Eclipse.
In the DEBUG folder, it generates the program file: WinProjectTest005
If I double click on it, nothing happens.
OS: Kubuntu 18.04.3 LTS (aka Ubuntu 18.04.3 LTS)
I guess the file manager is Dolphin.
On Windows, when you double click on a EXE file, it would popup a cmd window. In Kubuntu nothing happens.
Here is the boring program:
================================
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout<<"!!!Hello World!!!"<<endl; // prints !!!Hello World!!!
cout<<"Enter a value:\n";
cin>>a;
cout<<"\nEnter a value:\n";
cin>>b;
a+=b;
cout<<"\nThe total is = "<<a<<endl;
cin>>a;
return 0;
}