從C過渡到C++

案例:輸出Hello World 源代碼:HelloWorld.cpp #include <iostream> using namespace std; int main(){ cout<<"Hello,World."<<endl; } 從helloworld看到的C和C++的區別: 文件後綴名「.c和.cpp」 頭文件#include <iostream> 命名空間 using name
相關文章
相關標籤/搜索