首先在 C++ 程序中不要编译和执行

首先在 C++ 程序中不要编译和执行
#include<iostream>

using namespace std;

int main()
{
          cout << " hello world !! good job nothing & something" << "\n" ; 
          cout << " i jitendra singh in first c++";


    return 0;
}

答案1

一般问题,一般答案:

代码可以运行并编译:

g++ foo.cpp
./a.out

输出:

 hello world !! good job nothing & something
 i jitendra singh in first c++%

您的代码位于foo.cpp

#include<iostream>

using namespace std;

int main()
{
          cout << " hello world !! good job nothing & something" << "\n" ; 
          cout << " i jitendra singh in first c++";


    return 0;
}

相关内容