title: How to compile and run one random single C++ file in QtCreator (Linux Ubuntu)?
body: <p>I'm new to Linux and QtCreator. I have many cpp files with different names that all have main functions in them. But I do not know how to run these cpp files one by one. I also need configuring parameters when running them. I assume Qt Creator doesn't allow compiling and running single cpp files with random names. But in here: <a href="https://bugreports.qt.io/browse/QTCREATORBUG-106" rel="nofollow noreferrer">https://bugreports.qt.io/browse/QTCREATORBUG-106</a>, it said this problem is solved. But I still can not find out how to do it.</p>
  
  <p>For a C++ project created via Qt Creator, I found I just need to click the green arrow then the main.cpp under the Sources folder will be compiled and run. But the project I am currently using is a C++ project I downloaded from the Internet (GraphChi). The structure of the files and folders are totally different with the ones created via Gt Creator. There's no cpp file "main.cpp", but there're many single cpp files with names of algorithms, each of which has a main function in it. </p>
  
  <p>I just don't know how to compile them one by one or together, and run anyone of them.</p>