VScode运行c++/java的基础配置

c++

  • ubuntu下vscode基础使用(编译运行c/c++)

java

  • ubuntu+vscode配置java运行环境
  • 最新版VSCode搭建Java开发环境+配置console+引入第三方jar包(快速,防踩坑,详细图解,完整)

python

  • 用VScode配置Python开发环境
其他通用问题
  • VS Code 控制台不能输入的问题
简单的helloworld
  • c++
#include 
using namespace std;

class student
{
private:
    int num;
    int score;

public:
    void setdata()
    {
        cin >> num;
        cin >> score;
    }
    void displyadata()
    {
        cout << "num:" << num << endl;
        cout << "score:" << score << endl;
    };
};

student s1, s2;
int main()
{
    s1.setdata();
    s2.setdata();
    s1.displyadata();
    s2.displyadata();

    cout << "Hello World!" << endl;
    return 0;
}
  • java
import com.hello;


public class App {
     
    public static void main(String[] args) throws Exception {
     

        hello h = new hello();
        h.display();
        
        System.out.println("Hello, World!");
    }
}

你可能感兴趣的:(软件工具&安装)