代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/351896/10598763
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/351896/10598773
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/351896/10598787
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/351896/10598792
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/277457/10637764
cpp auto_ptr.cpp
#include
#include
#include
using namespace std;
class person
{
string name;
public:
person (string n) : name(n) {}
void display() {cout
www.eeworm.com/read/350922/10696429
c ptr_demo.c
#include
void main(void)
{
int counter = 10;
int *iptr; // Declare pointer value
iptr = &counter; // Assign the address
printf("Addres in iptr %x Value at
www.eeworm.com/read/350922/10696451
c ptr_upr.c
#include
#include
char *string_uppercase(char *string)
{
char *starting_address;
starting_address = string;
while (*string)
toupper(*string++);
re
www.eeworm.com/read/350922/10696533
c str_ptr.c
#include
void show_string(char *string)
{
while (*string)
putchar(*string++);
}
void main(void)
{
show_string("Jamsa's 1001 C/C++ Tips");
}
www.eeworm.com/read/350922/10696915
c ptr_out.c
#include
void main ()
{
int value;
printf("The address of the variable value is %p\n",
&value);
}
www.eeworm.com/read/350922/10697251
c env_ptr.c
#include
void main (int argc, char **argv, char **env)
{
while (*env)
printf("%s\n", *env++);
}