User Profile
Collapse
-
interpolating arrays !
Does anyone have a C or C++ script for the interpolation of an array. I want to increase the resolution of an arry (tensor) from e.g. 100*100 to 1000*1000. The new positions should be filled wiht interpolated values. Could anyone help me ? Thanks -
Macros in visual studio express
I am trying to put a code into visual studio express (it is a win32 console application). The copmiler does not accept macros and precompiler lines (e.g. #ifdef etc.)
What can I do ? -
Great thanks ! But now the compiler does not accept macros. Do you know what I have to change ? -
linking/compiling problem
I am writting a cod in C in visual C++. Does anyone know what this linking error means and how I can avoid it ?
MSVCRTD.lib(crt exew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStar tup
.\Debug/BiofilmInPores. exe : fatal error LNK1120: 1 unresolved externals -
-
change subdirectory in for loop
Hi,
I need to open files in different subdirectories of my local directory. The subdirectories have the names 1,2,3 ...,N. How can I make a for loop to open the files in the different folders ? Something like
for( N ) {
fpointer=fopen (../N/filename,"r")
...
}
?? -
Sorry, just found out by trail and error, just call fgets again and it will read the second line.Leave a comment:
-
reading different lines with fgets
I manage to read the first line of a text file using fgets, how do I read the second, third, fourth ... lines ?
Daniel -
-
-
Writting from memory to text file
I have somthing in the memory which is float and corresponds to 100 values and I have a pointer asinged to it:
How do I write this memory to a text file with 10 rows and 10 colums ?Code:float *buffer,*pt; buffer = (float*) malloc (sizeof(float)*100);
-
Great Thanks, the example is very good. How do I then loop trhough the buffer to write into text using fprintf ?Leave a comment:
-
-
Floating point binary data
How do I read in a floating point binary data file ? And how can I then loop through each point of it ? -
Thnaks ! So can you alos write an entire line into an array ?...Leave a comment:
-
Thanks, will point 3 and 4 be something like...
while(((c=fgetc (fp) !== EOF)
For (i=0; i <maxsize; i++){
For (j=0; j < maxsize; j++){
c=array[i][j];
}}
??Leave a comment:
-
Yes, I know the number of rows and columns and they will be equal, so I know that the text file will have e.g. 20*20 values....Leave a comment:
-
Cool ! I want to read in a file called file.txt which consists of N rows and N columns filled with values. I will need an array[N][N] that I can then use in code....Leave a comment:
-
Read text file into array
Hi ! I know it's possible to use a nested for loop or something to read an array and print it into a text file. Is it also possible to read in a text file and then put the values in an array ? Thanks ! -
vis3D file ?
Does anyone knoe what a vis3D file is ? It seems to consist of a data file, a defn file (probably somthing like header) and a platfrom file.
No activity results to display
Show More
Leave a comment: