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. 3 1403
<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.co m> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
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.co m> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
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.co m> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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 knowledgeable insight into this.
My class Position has a string (private, public - doesn't
seem to matter which), which I construct in a member
function and wish to return calls from main(). However, although
|
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();
};
|
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,
#include <map>
#include <iostream>
#include <iomanip>
#include <string>
#include <time.h>
|
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 the lib provided .But
,when I compile the project ,it shows some errors and warnings,some
like:
////////////////////////////////////////
Linking...
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall
std::basic_string<char,struct...
| |
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 initialized with a
constructor like this
|
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 below would work...
string gsub(const string & sData,
const string & sFrom,
|
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 updatePower which will search through the file looking at the names and if a name is a match, will allow you to replace the integer stored for power. I have written the program and completed the first task, but I need some assistance on the secind....
|
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
{
public:
operator string(); // allow this class to be typecast into a string
operator char*(); // allow this class to be typecast into a char*
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |