Search Results

Search: Posts Made By: carl.alv
Forum: Programming 04-16-2009
3,251
Posted By carl.alv
Nevermind, i found the answer :p, using the...
Nevermind, i found the answer :p, using the operator() :


inline T & operator()(int i, int j, int k) { return m_data[i][j][k]; }


This way i can access the data as M(i,j,k). Thanx anyway!
Forum: Programming 04-16-2009
8,412
Posted By carl.alv
multidimensional array using c++ vector
Hi! I need to make dynamic multidimensional arrays using the vector class. I found in this page How to dynamically create a two dimensional array? - Microsoft: Visual C++ FAQ - Tek-Tips...
Forum: Programming 04-16-2009
3,251
Posted By carl.alv
c++ mutidimentional arrays using vector
Hi! I need to make dynamic multidimensional arrays using the vector class. I found in this page How to dynamically create a two dimensional array? - Microsoft: Visual C++ FAQ - Tek-Tips...
7,104
Posted By carl.alv
i used ((j += 1)), it works now, thanx!!
i used ((j += 1)), it works now, thanx!!
7,104
Posted By carl.alv
Tnx for your answer. I am not sure which shell...
Tnx for your answer. I am not sure which shell its on use in the machine, but it didnt complaint for that anymore. Now it complaints about the j++:

j++: 0403-053 Expression is not complete; more...
7,104
Posted By carl.alv
shell script on AIX
Hi!

I have made a simple script for writing the following line on a file (file.txt):

list= 1 2 3

and thr script looks like this:


N=3
ll=(1 2 3)
echo -n "list= ">> file.txt
j=0
while...
Forum: Programming 02-29-2008
2,174
Posted By carl.alv
Well, you could read the files with fscanf() and...
Well, you could read the files with fscanf() and then store the values in to some array, which you can pass to your function.
Forum: Programming 02-29-2008
2,905
Posted By carl.alv
restricted pointers
Hi all. I am trying to use restricted pointers to allow the gcc compiler optimize the code, but I have not been able to make it work so far. I am testing with this code:

#include <stdlib.h>...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 02:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy