473,320 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How creat a string class use the char*?

Hi everyone,there is a simply question puzzle me:
Under the CPP,where can use the char* to creat
a string class for use,but under the .NET Framework?
How to use C# to creat a string class as the BCL suppert??
It can do this work?

PS: I read from the code of SSCLI,It is found that when BCL implent the

string ,it calll for an model of the runtime lib.

Nov 6 '06 #1
3 1377
<ir************@gmail.comwrote:
Hi everyone,there is a simply question puzzle me:
Under the CPP,where can use the char* to creat
a string class for use,but under the .NET Framework?
How to use C# to creat a string class as the BCL suppert??
It can do this work?

PS: I read from the code of SSCLI,It is found that when BCL implent the

string ,it calll for an model of the runtime lib.
It's not exactly clear what you're trying to do. What's wrong with the
String class?

String has a couple of properties which you can't mimic in your own
code. In particular, it's the only type other than arrays whose size
isn't known from the type definition.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Nov 6 '06 #2
the string class is so good,butI just want to konwm how the string
class implent?

Jon wrote:
<ir************@gmail.comwrote:
Hi everyone,there is a simply question puzzle me:
Under the CPP,where can use the char* to creat
a string class for use,but under the .NET Framework?
How to use C# to creat a string class as the BCL suppert??
It can do this work?

PS: I read from the code of SSCLI,It is found that when BCL implent the

string ,it calll for an model of the runtime lib.

It's not exactly clear what you're trying to do. What's wrong with the
String class?

String has a couple of properties which you can't mimic in your own
code. In particular, it's the only type other than arrays whose size
isn't known from the type definition.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Nov 7 '06 #3
Kevien Lee <ir************@gmail.comwrote:
the string class is so good,butI just want to konwm how the string
class implent?
Well, you can download Rotor and look at the implementation there. It's
not the kind of class you'd implement yourself though.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Nov 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew | last post by:
I have written two classes : a String Class based on the book " C++ in 21 days " and a GenericIpClass listed below : file GenericStringClass.h // Generic String class
9
by: David Carter-Hitchin | last post by:
Hi, I'm not very experienced with c++ so I'm sure this is something obvious that is easily solved, but for the life of me I can't seem to figure it out. I'd be very grateful for some...
4
by: learning_C++ | last post by:
I hope to make a time class or a function. So I can make use it to show time where I want. But it does not work. Please help me! Thanks, class Time { public: string get_current_time(); };
2
by: learning_C++ | last post by:
I programmed this code with a function "get_current_time" in the begining. When I compiled with the command g++ -Wall -g xxx.xpp -o xxx there are so many errors. please help me and thanks, ...
0
by: bohemia | last post by:
Hi all, I using visual c++ to creat a dll to wrapper a class that provided by another library.So I add the .lib to my win32 dll project under the link .and in my project I add some header files...
27
by: djake | last post by:
In the stroustrup C++ programming language (third edition) i can find example like this: string s1= "Hello"; So I imagine string is a standard class. Furthermore the class in the example is...
13
by: M | last post by:
Hi, I've searched through the previous posts and there seems to be a few examples of search and replacing all occurrances of a string with another string. I would have thought that the code...
10
by: B. Williams | last post by:
I have an assignment that requires me to write a program that uses a class, a constructor, a switch, and store the records in a text file. The second requirement is to create a function called...
3
by: ryan.gilfether | last post by:
I have a problem that I have been fighting for a while and haven't found a good solution for. Forgive me, but my C++ is really rusty. I have a custom config file class: class ConfigFileValue...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.