代码搜索:Programs
找到约 10,000 项符合「Programs」的源代码
代码结果 10,000
www.eeworm.com/read/113029/15472072
cpp fig04_07.cpp
// Fig. 4.7: fig04_07.cpp
// A const object must be initialized.
int main()
{
const int x; // Error: x must be initialized
x = 7; // Error: cannot modify a const variable
www.eeworm.com/read/113029/15472078
cpp ex03_02.cpp
// Exercise 3.2: ex03_02.cpp
#include
using std::cout;
using std::endl;
int cube( int y ); // function prototype
int main()
{
int x;
// loop 10 times, calculate cube
www.eeworm.com/read/113029/15472087
cpp fig03_07.cpp
// Fig. 3.7: fig03_07.cpp
// Shifted, scaled integers produced by 1 + rand() % 6.
#include
using std::cout;
using std::endl;
#include
using std::setw;
#include
www.eeworm.com/read/113029/15472097
cpp ex03_49.cpp
// Exercise 3.49: ex03_49.cpp
// What is wrong with this program?
#include
using std::cin;
using std::cout;
int main()
{
int c;
if ( ( c = cin.get() ) != EOF ) {
www.eeworm.com/read/113029/15472101
cpp fig21_38.cpp
// Fig. 21.38: fig21_38.cpp
// Standard library algorithms min and max.
#include
using std::cout;
using std::endl;
#include
int main()
{
cout
www.eeworm.com/read/113029/15472143
cpp fig22_05.cpp
// Fig. 22.5: fig22_05.cpp
// Demonstrating operator keywords.
#include
using std::cout;
using std::endl;
using std::boolalpha;
#include
int main()
{
int a = 2;
www.eeworm.com/read/113029/15472374
cpp fig07_13.cpp
// Fig. 7.13: fig07_13.cpp
// Using the this pointer to refer to object members.
#include
using std::cout;
using std::endl;
class Test {
public:
Test( int = 0 ); // def