I have this 'simplified' fortran code
real B(100, 200)
real A(100,200)
... initialize B array code.
do I = 1, 100
do J = 1, 200
A(J,I) = B(J,I)
...
|
I have functon that convert list in array:
void* list_to_array(SList* list)
{
int i;
int array_size = list_get_length(list);
void* array[array_size];
...
|
I there are similar questions out there, but none of that did really help me with my problem.
I get a string with unknown number of floating point numbers and I have ... |
I'm stuck on a recursive function in the C code (I did not write the C code). Here is the snippet I'm converting:
int makeroad(float x1, float y1, float x2, float ...
|
I have a 3 by 3 rotation matrix, created with the header cvCreateMat(3, 3, CV_32FC1). This is the matrix I get from calling cvRodrigues2. I want to rotate several points stored ... |
I am studying the MIPS assembly language and came across this example in the book and to me it seems incorrect. If it is it wouldn't be the first mistake I ... |
How can I efficiently dump xmm register into uint8_t array[16]?
|
|
I would like convert an array in D of the form:
string[] arrayStr = [ "hi, "is fun", "use D programming" ];
I have a C function which takes a C variadic:
void c_func( ...
|
In C, all the number types are, somewhere deep in your computer, actually stored as a row of binary bits, so I wouldn't call a number "decimal" unless it's decimal digits were stored in a string. But aside from that, to get a bit at a specific position in an int, you can make a int that has only a bit ... |
Hello, i wrote a client in C, that read value of voltages. I read, in output, this value like a string, for example: +3.91 +0.29 +2.27 +1.21 +2.45 +4.48 +3.14 +0.72 +1.12 +4.73 +0.58 +1.87 ...... in a for loop. Inside this for loop, i insert a for clicle to convert the string to float. [PHP] char *pEnd=buffer; double v, r, ... |
Hi guys I need little help here . I want to convert 'System::Object __gc * array ' to 'float array' Lets say I have object Reader with method Send ,it returns a variant that contains a one-dimensional array of float value . I m trying to do something like this. float analogdata[5]; analogdata = Reader->Send ; When I try this I ... |
Your code looks to me like it's meant to send out digits that have been stripped from the number, one at a time, using output [0] and output[1]. Basically, appending the two digits, onto each other, in the one TXBUF (transmit buffer I presume). so the number 123, becomes 7B, which is stripped apart to output[0] = 7, and output[1] = ... |
|
|
|
|
In his reply to ThatsAlok d_singh wrote: thanx for replying but i want to separate both bytes of uint16 and then the total 10 bytes which , i will get should be in array of uint8. My guess is that he wants a sequence of bytes, and doesn't actually need to copy the data ... |
My background is embedded programming in the C/C++ world. I have recently joined a project that is using C#. My issue is how do I translate C structs to C# structs when the data within them must remain contiguous to match a stream of data? For example, I have two structs: typedef struct { byte regs[15]; } Registers; typedef struct { ... |