代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/388784/8576598
cpp plain-ptr.cpp
#include
using std::ostream; using std::cout; using std::endl;
#include
// class that has a pointer member that behaves like a plain pointer
class HasPtr {
public:
frie
www.eeworm.com/read/388784/8576608
cpp value-ptr.cpp
/*
* This file contains code from "C++ Primer, Fourth Edition", by Stanley B.
* Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that
www.eeworm.com/read/388784/8576622
cpp smart-ptr.cpp
/*
* This file contains code from "C++ Primer, Fourth Edition", by Stanley B.
* Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that
www.eeworm.com/read/388784/8576627
cpp plain-ptr.cpp
/*
* This file contains code from "C++ Primer, Fourth Edition", by Stanley B.
* Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that
www.eeworm.com/read/432640/8585063
h refcnt_ptr.h
// -*- c++ -*-
//
// $Id: refcnt_ptr.h,v 1.2 2001/11/19 15:07:09 llee Exp $
//
// Copyright 1997, 1998, 1999 University of Notre Dame.
// Authors: Andrew Lumsdaine, Jeremy G. Siek, Lie-Quan Lee
//
//
www.eeworm.com/read/388617/8594803
cpp init_ptr.cpp
// init_ptr.cpp -- initialize a pointer
#include
int main()
{
using namespace std;
int higgens = 5;
int * pt = &higgens;
cout
www.eeworm.com/read/388617/8595562
cpp fun_ptr.cpp
// fun_ptr.cpp -- pointers to functions
#include
double betsy(int);
double pam(int);
// second argument is pointer to a type double function that
// takes a type int argument
void e
www.eeworm.com/read/388617/8595936
cpp init_ptr.cpp
// init_ptr.cpp -- initialize a pointer
#include
int main()
{
using namespace std;
int higgens = 5;
int * pt = &higgens;
cout
www.eeworm.com/read/388617/8596591
cpp fun_ptr.cpp
// fun_ptr.cpp -- pointers to functions
#include
double betsy(int);
double pam(int);
// second argument is pointer to a type double function that
// takes a type int argument
void e
www.eeworm.com/read/430868/8720798