代码搜索:String
找到约 10,000 项符合「String」的源代码
代码结果 10,000
www.eeworm.com/read/379307/9200915
cpp c4-4-3.cpp
#include
#include
using namespace std;
class String
{public:
String(){p=NULL;}
String(char *str);
friend bool operator>(String &string1,String &string2);
frien
www.eeworm.com/read/379307/9200917
cpp c4-4-4(vc).cpp
//本程序适用于VC++ 6.0
#include
#include
class String
{public:
String(){p=NULL;}
String(char *str);
friend bool operator>(String &string1,String &string2);
frien
www.eeworm.com/read/379307/9200920
cpp c4-4-1.cpp
#include
using namespace std;
class String //String 是用户自己指定的类名
{public:
String(){p=NULL;}
String(char *str);
void display();
private:
char *p;
};
Stri
www.eeworm.com/read/379307/9200922
cpp c4-4-4.cpp
#include
#include
using namespace std;
class String
{public:
String(){p=NULL;}
String(char *str);
friend bool operator>(String &string1,String &string2);
frie
www.eeworm.com/read/379307/9200929
cpp c4-4-2.cpp
#include
#include
using namespace std;
class String
{public:
String(){p=NULL;}
String(char *str);
friend bool operator>(String &string1,String &string2);
frie
www.eeworm.com/read/379307/9200935
cpp c4-4-3(vc).cpp
//本程序适用于VC++ 6.0
#include
#include
class String
{public:
String(){p=NULL;}
String(char *str);
friend bool operator>(String &string1,String &string2);
frien
www.eeworm.com/read/379196/9205017
txt 例10.4.txt
例10.4 定义一个字符串类<mark>String</mark>,用来存放不定长的字符串,重载运算符“==”,“”,用于两个字符串的等于、小于和大于的比较运算。
为了使读者便于理解程序,同时也使读者了解建立程序的步骤,下面分几步来介绍编程过程。
(1) 先建立一个<mark>String</mark>类:
#include
using namespace std;
class <mark>String</mark>
{publ ...
www.eeworm.com/read/378183/9245206
dat funtc74b.dat
free
#include
#include
#include
int main(void)
{
char *str;
str = malloc(10);
strcpy(str, "Hello");
printf("String is %s
", str);
free(st
www.eeworm.com/read/181347/9257627
java exercise16_2.java
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import javax.swing.JOptionPane;
public class Exercise16_2 {
public static void main(String[]a)throws IOExce
www.eeworm.com/read/180877/9282092
cpp p3-162.cpp
#include
#include
void main( void )
{
//声明字符数组和字符型指针变量
char string[80],*p;
//拷贝字符串
strcpy( string, "I'll see you");
cout