Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: kreop
  • Order by date
  1. kreop

    Compare a data

    Thank you. result_data[frame][i] is a data from other calculation. My purpose is to match data_1[frame][axis]-data_2[frame][axis] with result_data[frame][i] or data_1[frame][axis]-data_2[frame][axis]=POINTERresult_data[frame][i] I guess pointer can be used here to match the submission of...
  2. kreop

    Compare a data

    I has a question about a pointer. For example I has a data as below, data_1[frame][axis]={{1,2,3},{2,3,4},...,{x,y,z}} data_2[frame][axis]={{3,4,5},{4,5,6},...,{x,y,z}} in memory result_data[frame][i]={1,0,1,0,2,0,3,....,n} data_1[frame][axis]-data_2[frame][axis]=POINTERresult_data[frame][i]...
  3. kreop

    Sprintf function

    I have a question about sprintf function. It is correct that the function is for display a char continously depend on the int i within for loop. And, as a result, the file name Name[i] will be written in directory folder as Name_data. static char *DIR = "C:\\:***/***/Name_data"; static char...
  4. kreop

    creating own func

    I have a question about creating own function and array as an argument. #include header1.h function1(Arg11[][3], Arg22[][2], Arg33[][4]){ Arg11[][3]; } #include header2.h function2(Arg1[][3], Arg2[][2], Arg3[6] ){ Arg1[][3]; function1(Arg11[][3], Arg22[][2], Arg33[][4]); } I dont know...
  5. kreop

    DirectX d3dx.h cannot open file

    hai...i have a question about directx d3dx.h. I failed to compile my program because no such file d3dx.h in directory. I have installed directX 8 or even 9 but I failed to found d3dx.h. Do i need to link or include something to my program after finish installing direct X. Please give me some...
  6. kreop

    array and pointer

    goon.dat 1.23, 2.34, 3.45 1.34, 2.12, 3.56 1.44, 4.56, 6.78 double data[34][4]; void read_data() { char file_name[30]="goon.dat"; int i,j; FILE *fp; double X,Y,Z; fp=fopen(file_name,"r"); if(fp==NULL){ printf("Cannot Open File?\n"); exit(1); } for(i=0;i<34;i++){ j=0...
  7. kreop

    data structure problem

    Tq. Yes. I have a question about the construction of structure. for example, struct finger { double x; double y; double z; }; struct hand{ struct finger thumb; struct finger index; struct finger middle; struct finger ring; }; In term of data what does it means by...
  8. kreop

    data structure problem

    tq for the comments and ideas.Actually I tried to develop a hirarachy structure of human hand using STRUCT function. The idea is finger_A, finger_B and finger_C are belong to STRUCT hand{...}. finger_A,B and C are 3D data {x,y,z}. My problem is how to express BELONG using C codes. struct...
  9. kreop

    data structure problem

    Yes.. still error . I am using Microsoft Visual C++ Ver.6.0. Three errors here. right_hand = (struct hand) {7.0f, 8.0f, 9.0f}; Error 1.Construction Error : '{' 2.Construction Error : ';' is needed before '{' 3.Construction Error : ';' is needed before '}'
  10. kreop

    data structure problem

    Thank you SamBones . I tried to compile /*Assigned Together*/ but have some error. #include <stdio.h> main() { struct hand{ double finger_A; double finger_B; double finger_C; }right_hand; /* Assigned together */ right_hand = (struct hand){7, 8...
  11. kreop

    data structure problem

    hai...This is a sample programming code and I failed to compile it. I guess the problem is {1,2,3}/3D koordinate (x,y,z)colored text main() { struct hand{ double finger_A; double finger_B; double finger_C; }; struct hand right_hand; right_hand.finger_A={1,2,3}; //The problem...
  12. kreop

    Show data with C and OpenGL

    hai..I have a question about how to display the data at each coordinate or dot. The codes below are for drawing the points or coordinates using dot.I tried to display each dot with data that is written close to it. My compiler is Visual C++ 6.0 and OS win 2000. OpenGL is used for graphic...
  13. kreop

    How to make networking using Windsock API

    Hai..I have a question about making network communication between two computers using Windsock API.I have done the network communication on same computer by following the instruction from book, but when come to make a communication between two computers, I face the problem. I hope to get some...
  14. kreop

    To understand function()

    hi...Sorry,this is a basic question about function. I tried to find the solution from net but failed. Here is a sample code of C #include<stdio.h> int mult(int); //prototype main() { int a; printf(" Enter the Integer!"); scanf("%d",&a); printf("2x%d is %d",a,mult(a)); //call function }...

Part and Inventory Search

Back
Top