Traditional Culture Encyclopedia - Photography major - Guangzhou Emma wedding photography
Guangzhou 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]);
}
}
- Previous article:Photographic works of Fujian after growing up.
- Next article:Would you like to ask about the consumption level in Nepal?
- Related articles
- I saw the job of porter in Chifeng. I want to ask what this job is and is it promising?
- Best camera phone
- Hebei mobile phone photography circle
- What is animation? And what are the characteristics of animation?
- Which headphones are suitable for use in noisy environments?
- What examinations are needed for femoral head necrosis?
- Arnold gesell's point of view
- Are there any good brands and performances of German cameras?
- Analyze the inspiration of Buffett’s success to ordinary people from three dimensions
- Osasuna vs Spaniard (La Liga match)