by: megha |
last post by:
Hi
I have string in java now i want to replace that string but at same
time I want
this string is replaced on same memory location on which first string
was.
How I can do it. In simple replace...
|
by: bml |
last post by:
char s1 = "this string";
char *s2;
s2 = (char *)malloc(30);
memset(s2, 0, 30);
/* this supposes to copy string s1 to s2 */
while((*s2++ = *s1++) != '\0');
/* Why empty content of s2 print...
|
by: marfi95 |
last post by:
Hi all.
I need to copy a byte array into a string, but starting at a specific
location in the byte array. This is where I get hung up. For example if
my byte array is (100) big, I might want to...
|
by: Simon |
last post by:
Hi,
I have a class that does not seem to work.
I cannot see the problem, and the "fix" I have found does not help me
understand what the problem was
I know I don't need a copy constructor but...
|
by: CMirandaman |
last post by:
Sounds like a stupid question I know. I can tell that they are used to copy
strings. But what is the difference between
x = y;
versus x = String.Copy(y);
Or are they essentially the same?
|
by: akarui.tomodachi |
last post by:
I have two structure definitions as below:
typedef struct _sourceString
{
char firstSourceString;
char secondSourceString;
char thirdSourceString;
}sourceString;
|
by: Gary |
last post by:
I'm confused about the two ways of string copy below. The first one
(two functions) works; the second doesn't. Can anybody explain the
reason to me? Thanks a lot.
#include <stdio.h>
/*this one...
|
by: wahaha |
last post by:
Hi,
In a small code to implement string copy:
while(*a++ = *b++) ;
both a and b are char pointers. This code works but at the end, when *a
= *b = '\0' finishes, both a and b step one block...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|