Traditional Culture Encyclopedia - Photography and portraiture - Hangzhou Emma wedding photography
Hangzhou Emma wedding photography
C++ code:
char *A(char buf[])
{
char buffer[50]= { };
int I = 0;
while(buf[i]! = '/0 ' & amp; & amp & lt49) {
buff[I]= buf[I]
i++;
}
buffer[I]=- 1;
Return buffer;
}
/////////////////////////////
C# code:
Unsafe {
char * buffer = A(buf);
int I = 0;
while(buffer[i++]! = - 1) {
console . out . writeln(buffer[I]);
}
}
Or you can write another function int getSize () in the DLL to return the length of the array:
C++ code:
Static int size = 0;;
int getSize(){
Returns the size;
}
char *A(char buf[])
{
char buffer[50]= { };
while(buf[i]! = '/0 ' & amp; & amp & lt49) {
buff[I]= buf[I]
size++;
}
Return buffer;
}
C# code:
C# code:
Unsafe {
char * buffer = A(buf);
int size = getSize();
for(int I = 0; I< size; i++) {
console . out . writeln(buffer[I]);
}
}
- Related articles
- Who is the murderer? Who is the real murderer of the serial murder of seagoing ships?
- How to use the plotter?
- Hu Xinger released a blockbuster about seven months pregnant. What are the creative ideas of the photos taken by female stars during pregnancy?
- In what order was the article Sunrise written?
- Description of Haikong Junlan Sanya Bay Guest House
- What are the manifestations of obsessive-compulsive disorder?
- The best time to take maternity photos: 7-8 months pregnant.
- Why do the ancient buildings in China develop horizontally? Three-dimensional development of western ancient buildings?
- Which wedding dress shop is good in qibin district?
- The mini chameleon is the smallest chameleon in the world, less than 3 cm long and only the size of a fingernail.