hello_world.cpp
C++_4th/Part_I_Introductory/Chapter_1_Notes_to_Reader/hello_world.cpp
#include <iostream>
#include <string>
using namespace std;
// Demonstrates basic C++ program structure and I/O
int main() {
string name;
cout << "Enter your name: ";
cin >> name;
cout << "Hello, " << name << "! Welcome to C++!" ;
cout << "Have a nice day!" << endl;
return 0;
}
Artículos relacionados
vector_example.cpp
vector_example.cpp — cpp source code from the C++ 4th learning materials (C++_4th/Capstone_Project/examples/vector_example.cpp).
Leer artículo →algorithm.h
algorithm.h — c source code from the C++ 4th learning materials (C++_4th/Capstone_Project/include/mini_stl/algorithm.h).
Leer artículo →map.h
map.h — c source code from the C++ 4th learning materials (C++_4th/Capstone_Project/include/mini_stl/map.h).
Leer artículo →thread_pool.h
thread_pool.h — c source code from the C++ 4th learning materials (C++_4th/Capstone_Project/include/mini_stl/thread_pool.h).
Leer artículo →vector.h
vector.h — c source code from the C++ 4th learning materials (C++_4th/Capstone_Project/include/mini_stl/vector.h).
Leer artículo →template_metaprogramming.cpp
template_metaprogramming.cpp — cpp source code from the C++ 4th learning materials (C++_4th/Examples/Advanced_Features/template_metaprogramming.cpp).
Leer artículo →