代码搜索:ptr
找到约 10,000 项符合「ptr」的源代码
代码结果 10,000
www.eeworm.com/read/320816/13417817
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/320816/13417824
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/320816/13417844
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/320816/13417957
c ptr_out.c
#include
void main ()
{
int value;
printf("The address of the variable value is %p\n",
&value);
}
www.eeworm.com/read/320816/13418048
c env_ptr.c
#include
void main (int argc, char **argv, char **env)
{
while (*env)
printf("%s\n", *env++);
}
www.eeworm.com/read/320816/13418050
c argv_ptr.c
#include
void main (int argc, char **argv)
{
while (*argv)
printf ("%s\n", *argv++);
}
www.eeworm.com/read/320159/13431997
cpp dbl_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/320159/13432002
cpp ptr_traversal.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/320159/13432118
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/320159/13432120
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