Luk*_*rry 0 c++ program-entry-point qt-creator
我希望能够从另一个文件返回到main.cpp文件.例如.
// Main.cpp
#include "Globals.h"
int main()
{
otherFile();
}
// Globals.h
#include <iostream>
#include <stdlib.h>
bool otherFile();
//otherFile.cpp
#include "Globals.h"
bool otherFile()
{
// do stuff
// Here I want to be able to go back to the main.cpp file.
}
Run Code Online (Sandbox Code Playgroud)
对不起,如果我的问题毫无意义