代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/403013/11524088
cpp value-ptr.cpp
#include
using std::ostream; using std::cout; using std::endl;
#include
class HasPtr {
public:
// no point to passing a pointer if we're going to copy it anyway
//
www.eeworm.com/read/403013/11524090
cpp smart-ptr.cpp
#include
using std::ostream; using std::cout; using std::endl;
#include
#include
using std::size_t;
//private class for use by HasPtr only
class U_Ptr {
friend
www.eeworm.com/read/403013/11524091
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/403013/11524094
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/403013/11524098
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/403013/11524099
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/403011/11524250
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/403011/11524445
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/403009/11524557
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/403009/11524750
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