Traditional Culture Encyclopedia - Photography major - Liu Mengjie wedding photography
Liu Mengjie 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]);
}
}
- Previous article:Why should Apple notebook be SDXC card slot instead of SD card slot?
- Next article:How to be a TikTok special effects artist
- Related articles
- What do you mean by being stung?
- The story of pig's nine sisters in bright spring.
- Where can I buy lenses in Hong Kong?
- Blessings for employees after resignation_Blessings for employees after resignation
- Five letters of intent for lease contracts
- Is the camera function of Nubian mobile phone good?
- Appreciation of excellent works of classic photography
- Summary of Preferential Activities in Fuzhou Spring Festival Scenic Spot in 2022
- What are the must-have books for wedding practitioners?
- Jiangnan Yu Yan photography