03-13-2011
C program for generating loophole series
C PROGRAM TO GENERATE THE FOLLOWING SERIES CALLED LOOPHOLE SERIES:-
3,5,53,13,19,7,19,13,53,5,3
How do i do it?
Can somebody explain what is Loophole series and its applications?
10 More Discussions You Might Find Interesting
1. Programming
hi everybody,
My name is Raj i work in GE Global Software Solutions As Siebel Analyst. Can any one help in writing the code in Ansi C on HP-Unix platform to get data from IBM MQ-Series Server. IBM MQ-series client will be installed on the client machine which is on WIN NT platform. And MQ-series... (2 Replies)
Discussion started by: garimella
2 Replies
2. Shell Programming and Scripting
Need code to run the Fibonacci series from 0 to 10 (16 Replies)
Discussion started by: nycol
16 Replies
3. Programming
Hi,
Any one please let me know, how to write in to MQ Series through C. I tried, but it was vein, am expecting material(URL) or code.
Thanks,
Naga:cool: (5 Replies)
Discussion started by: Nagapandi
5 Replies
4. AIX
Hello,
I'm trying to generate a subsystem which supports startsrc, stopsrc and refresh
I want to specify special arguments in case of stopsrc and refresh
for example:
startsrc:
/bin/testscript start
stopsrc:
/bin/testscript stop
refresh:
/bin/testscript restart
which should be... (0 Replies)
Discussion started by: funksen
0 Replies
5. UNIX for Dummies Questions & Answers
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Discussion started by: tuathan
1 Replies
6. Programming
HI I have a series(sorted), which i require to create combinations. I am not getting the good code for doing this. My series should generate the following combinations... Please help me in getting this in C++. Thanks for your help.
A:
A
A B:
A
B
A B
A B C:
A
... (1 Reply)
Discussion started by: rameshmelam
1 Replies
7. Solaris
Hi All,
Do anyone know if I upgrade cpu module and memory module for one of the domain inside Sun M5000. After the upgrade, will the hostid for the domain change or it will remain as long we don't change the system board?
Currently will try to upgrade one of the Sun M5000 with 4 domains... (2 Replies)
Discussion started by: mailbox80
2 Replies
8. Shell Programming and Scripting
Hi Guys,
Can someone give me a simple script that can extract the numbers in between numbers from start to end. As shown below, it start from 100 to 110 and revealed the numbers in between.
INPUT:
100 - 110
DESIRED OUTPUT:
100
101
102
103
104
105
106
107 (6 Replies)
Discussion started by: pinpe
6 Replies
9. Shell Programming and Scripting
I am a biologist who is new to linux and am having difficulty generating a script to do what I want it to do! I have tried basic grep commands, but even that does not give me back the data I want.
I have many files that are all currently in .xslx and I'm not sure if they need to be .csv or .txt... (16 Replies)
Discussion started by: kellywilliams
16 Replies
10. Red Hat
Hai
what command is used to find red hat linux 5 series? (2 Replies)
Discussion started by: vinayd
2 Replies
LEARN ABOUT DEBIAN
tau_profile_set_node
TAU_PROFILE_SET_NODE(3) TAU Instrumentation API TAU_PROFILE_SET_NODE(3)
NAME
TAU_PROFILE_SET_NODE - Informs the measurement system of the node id
SYNOPSIS
C/C++:
TAU_PROFILE_SET_NODE(int node);
Fortran:
TAU_PROFILE_SET_NODE(integer node);
DESCRIPTION
The TAU_PROFILE_SET_NODE macro sets the node identifier of the executing task for profiling and tracing. Tasks are identified using node,
context and thread ids. The profile data files generated will accordingly be named profile.<node>.<context>.<thread>. Note that it is not
necessary to call TAU_PROFILE_SET_NODE when using the TAU MPI wrapper library.
EXAMPLE
C/C++ :
int main (int argc, char **argv) {
int ret, i;
pthread_attr_t attr;
pthread_t tid;
TAU_PROFILE_TIMER(tautimer,"main()", "int (int, char **)",
TAU_DEFAULT);
TAU_PROFILE_START(tautimer);
TAU_PROFILE_INIT(argc, argv);
TAU_PROFILE_SET_NODE(0);
/* ... */
TAU_PROFILE_STOP(tautimer);
return 0;
}
Fortran :
PROGRAM SUM_OF_CUBES
integer profiler(2) / 0, 0 /
save profiler
INTEGER :: H, T, U
call TAU_PROFILE_INIT()
call TAU_PROFILE_TIMER(profiler, 'PROGRAM SUM_OF_CUBES')
call TAU_PROFILE_START(profiler)
call TAU_PROFILE_SET_NODE(0)
! This program prints all 3-digit numbers that
! equal the sum of the cubes of their digits.
DO H = 1, 9
DO T = 0, 9
DO U = 0, 9
IF (100*H + 10*T + U == H**3 + T**3 + U**3) THEN
PRINT "(3I1)", H, T, U
ENDIF
END DO
END DO
END DO
call TAU_PROFILE_STOP(profiler)
END PROGRAM SUM_OF_CUBES
SEE ALSO
TAU_PROFILE_SET_CONTEXT(3)
08/31/2005 TAU_PROFILE_SET_NODE(3)