Traditional Culture Encyclopedia - Photography and portraiture - Liu Mengjie international wedding photography
Liu Mengjie international 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:How to shoot the tableware? How to shoot porcelain or photography?
- Next article:How to draw a fruit cut in half?
- Related articles
- Why do all the photos have a resolution of 72?
- Who is ICY? What's the style of his songs?
- What is the Sakura Ghost Club?
- What are the majors of Yancheng Electromechanical Higher Vocational and Technical School? What are the popular majors suitable for boys?
- What do you mean by a gallery with pictures?
- It's not an infringement of portrait right to advertise or show your work with your own model photos, is it?
- What are the contents of the makeup artist qualification examination?
- A rainstorm in history.
- What happened to the 500 mA X-ray machine in Southwest X-ray Equipment Factory?
- Which street office does Zhengzhou Oak Rose City belong to?