ch2-Init
Chapter_2 Types | Ref |
Init.cpp CS, p. 9; CPL, p. 41
#include <iostream>
using std::cout;
using std::endl;
int main() // initializations
{
int a = 0;
int b(1);
int c{2};
cout << "a = " << a << ", b = " << b << ", c = " << c << endl;
return 0;
}
/*
g++ Init.cpp -o Init
./Init
a = 0, b = 1, c = 2
*/
Chapter_2 Types | BACK_TO_TOP | Ref |
Comments
Post a Comment