代码搜索:String
找到约 10,000 项符合「String」的源代码
代码结果 10,000
www.eeworm.com/read/136879/13356162
cpp fig16_32.cpp
// Fig. 16.32: fig16_32.cpp
// Using strspn
#include
#include
int main()
{
char *string1 = "The value is 3.14159";
char *string2 = "aehilsTuv ";
cout
www.eeworm.com/read/312610/13607933
txt 例10.20.txt
例10.20用函数调用实现字符串的复制。
(1) 用字符数组作参数。
void copy-string
(char from[ ], char to[ ])
{int i=0;
while(from[i]!=′\0′)
{to[i]=from[i];i++;}
to[i]=′\0′;
}
www.eeworm.com/read/312169/13616854
cpp usingstrncpy.cpp
// Listing 15.9 Using strncpy()
#include
#include
int main()
{
const int MaxLength = 80;
char String1[] = "No man is an island";
char String2[MaxLeng
www.eeworm.com/read/312169/13616859
cpp usingstrcpy.cpp
// Listing 15.8 - Using strcpy()
#include
#include
int main()
{
char String1[] = "No man is an island";
char String2[80];
strcpy(String2
www.eeworm.com/read/302804/13827162
java stringapplet2.java
//StringApplet2.java
import java.awt.*;
import java.applet.*;
public class StringApplet2 extends Applet
{
//变量声明
TextField textField1;
TextField textField2;
Button button1;
String di
www.eeworm.com/read/144587/5749704
java bijiao.java
import java.io.*;
public class BiJiao
{
public static void main (String[] args)
{
if( args.length < 2 )
{
System.out.println( "Usage: string1 string2");
System.exit(-1);
}
www.eeworm.com/read/137311/5825977
l boa_lexer.l
%{
/*
* Boa, an http server
* Copyright (C) 1995 Paul Phillips
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General
www.eeworm.com/read/136812/5860362
c online_util.c
static char sccsid[] = "@(#)online_util.c 1.1 7/30/92 Copyright Sun Mircosystems Inc.";
/*************************************************************************
This file contains the following
www.eeworm.com/read/479340/6691846
cpp 8-6.cpp
/*3208006411*/
#include
void main()
{void concatenate(char string1[],char string2[],char string[]);
char s1[100],s2[100],s[100];
printf("\ninput string1:");
scanf("%s",s1);
printf("inp
www.eeworm.com/read/479166/6700166
cpp fig08_21.cpp
// Fig. 8.21: fig08_21.cpp
// Copying a string using array notation and pointer notation.
#include
using std::cout;
using std::endl;
void copy1( char *, const char * ); // prototype