Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~461 People Reached
Favorite Forums
Favorite Tags
c x 8
Member Avatar for rkarimi

Hi, Assume that we want to define a set of template function separately & then use them in other files, by calling their header. 1. Shoud we put function body (both define & declare) in header file as well. My current code works this way. But when I put those …

Member Avatar for rkarimi
0
144
Member Avatar for rkarimi

I'm using a set of classes with lots of *.h files. These files are located in a separate directory & I do not want to copy them to my own folder. I can add the path of the *.h file I use in the #include. However if that *.h file …

Member Avatar for Dave Sinkula
0
87
Member Avatar for rkarimi

/* I'd like to read some data from hard disk & then manipulate them as const variables. Here a simple version is attached. I do not know how to Initialize a const array by FUNCTION */ [code]#include <stdlib.h> #include <stdio.h> int *MAKE(const int n,int i) { int V[n]; V[0]=10*i; V[n-1]=2; …

Member Avatar for Dave Sinkula
0
105
Member Avatar for rkarimi

Hello, I need to allocate memory dynamically for arrays in FUNCTIONs (Here for R), but I can not use that memory in my main function Thank you so much [code]typedef float MYFLOAT; // or Called Standalone #define MYPRINT printf #define MYMAIN main #include <string> #include <cstdio> #include <cctype> #include <stdio.h> …

Member Avatar for amt_muk
0
125