Hi,
recently I encounter some of my ex-colleagues codes that use this:
my question is what is the usage of #define FNAME "ABC" in this case?
Thanks.
/********/
#define FNAME "ABC"
void ABC(int a, float b){
...
}
#undef FNAME
/*********/
I have a programming which has this process..
a command button is depressed and a ".dll" process is invoked. the ".dll" process will communicate with a hardware and monitor its status. However, the button is "dim" and the program is to be "hanged" but...
Hi,
if I have a char ptr with data and I want to convert to float, how can I do it?
eg
char* data="10000";
float F;
F = *data; /* this way */
Anyone know how can I perfrom a type cast
where
float ptr;
short ptr2;
...
ptr2 = ptr;
can I do this way? if not, what is the proper way to do it? Thanks
I still got error...
/***********/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
typedef struct{
int *a;
int len;
} vect;
int mcalc(vect *ptr);
int main(){
vect data;
data.len = 10;
mcalc(&data);
return 0;
}
int mcalc(vect *ptr){
int x=0...
Hi, I have used that. But there is compiling error.
My ideas is to have a struct say...
typedef struct{
int len;
int *ptr;
} vect;
void main(){
vect a;
/*** allocate memory ***/
vect_allocate(a);
...
...
free (a.ptr);
}
void vect_allocate(vect a){
a.ptr =...
A question here... Can I dynamically allocate memory to a pointer in main() by calling a function that do allocation of memory.
eg codes:
/*******************/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
int mcalc(int* vect);
int main(){
int* ptr;
int i...
My image file is a just a binaries files. Can I just do that as well... using the loadPicture function? The X and Y dimension is in another file. The bnaries file contain only values of the intensity.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.