c++语法格式

// ConsoleApplication3.cpp: 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <iostream>

//using namespace std; 命名空间,有点像java中的包类

int main()
{
    
    printf("hello world");
    std::cout << "hello world" <<std::endl;
    int n;
    //scanf("-----",&n);
    return 0;
    
}
原文地址:https://www.cnblogs.com/fengdaren/p/8727623.html