代码搜索:printf
找到约 10,000 项符合「printf」的源代码
代码结果 10,000
www.eeworm.com/read/410511/11280331
c 7-30.c
#include
main()
{
char * s="012345678901234567890123456789";
char *p;
p= strstr(s,"901");
printf("%s\n",p);
}
www.eeworm.com/read/410511/11280367
c 7-24.c
#include
main()
{
char *a="aBcDeF";
char *b="AbCdEf";
if(!strncasecmp(a,b,6))
printf("%s =%s\n",a,b);
}
www.eeworm.com/read/410511/11280395
c 7-14.c
#include
main()
{
char s[30];
memset (s,'A',sizeof(s));
s[30]='\0';
printf("%s\n",s);
}
www.eeworm.com/read/410511/11280403
c 7-16.c
#include
main()
{
char *a="aBcDeF";
char *b="AbCdEf";
if(!strcasecmp(a,b))
printf("%s=%s\n",a,b);
}
www.eeworm.com/read/410432/11287314
c print2.c
/* print2.c-more printf() properties */
#include
int main(void)
{
unsigned int un = 3000000000; /* system with 32-bit int */
short end = 200; /* and 16-bit short
www.eeworm.com/read/410432/11287520
c misuse.c
/* misuse.c -- uses a function incorrectly */
#include
int imax(); /* old-style declaration */
int main(void)
{
printf("The maximum of %d and %d is %d.\n",
3, 5,
www.eeworm.com/read/410432/11287539
c proto.c
/* proto.c -- uses a function prototype */
#include
int imax(int, int); /* prototype */
int main(void)
{
printf("The maximum of %d and %d is %d.\n",
3, 5, imax(3
www.eeworm.com/read/410432/11287585
c guess.c
/* guess.c -- an inefficient and faulty number-guesser */
#include
int main(void)
{
int guess = 1;
printf("Pick an integer from 1 to 100. I will try to guess ");
printf("
www.eeworm.com/read/410380/11288632
c domacro.c
/*
* Copyright (c) 1985, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are