Forum: C++
Apr 28th, 2006, 9:01 AM
|
|
Replies: 20
Views: 472
The code is just one part of a long calculation...
The code is just one part of a long calculation for the gravitational wave signal from a pulsar star. The mathematical functions are not that significant in this particular problem. It is mainly a...
|
Forum: C++
Apr 27th, 2006, 2:45 PM
|
|
Replies: 20
Views: 472
Hanging For loop in C++
Hi everyone,
I am just curious if anyone has come across why a for loop used in a number crunching scheme would hang when and not return the command prompt. No compilation errors and the conditions...
|
Forum: C++
Apr 21st, 2006, 7:39 AM
|
|
Replies: 2
Views: 159
|
Forum: C++
Apr 20th, 2006, 2:21 PM
|
|
Replies: 2
Views: 260
Arrays or Vectors?
I have seen a lot of debate on wheather to use arrays or vectors for passing arrays in functions. I have a simple program here that does not quite seem to work properly as what I intended. The goal...
|
Forum: C++
Apr 20th, 2006, 8:47 AM
|
|
Replies: 2
Views: 159
Array addition?
Hi everyone,
This maybe something very trivial, I am having trouble adding or multiplying elements of 2 or more arrays togethor. My original program is more complicted but this simple program may be...
|
Forum: C++
Mar 20th, 2006, 4:19 PM
|
|
Replies: 3
Views: 189
|
Forum: C++
Mar 20th, 2006, 4:16 PM
|
|
Replies: 2
Views: 218
Data input
I just want to get some ideas on how to import numerical data from a file into a C++ program.
Is it easier to use cin >> into an array or the read/write I/O methods.
Also when importing the data...
|
Forum: C++
Mar 8th, 2006, 9:26 AM
|
|
Replies: 1
Views: 124
GSL C++ Complex numbers?
Hi,
I am wondering if anyone knows a good website on how to use the GSL library (other than the GNU website) in C++, mainly complex number functions.
Really appreciate it.
:banana:
|
Forum: C++
Jan 30th, 2006, 7:26 AM
|
|
Replies: 3
Views: 135
|
Forum: C++
Jan 29th, 2006, 12:19 PM
|
|
Replies: 3
Views: 135
column output?
Hi everyone,
Really appreciate all the great help in the past. This might be something very simple but because I am new to C++, I don't know it.
If I wanted to print out a set of numerical data...
|
Forum: C++
Jan 28th, 2006, 5:10 PM
|
|
Replies: 14
Views: 420
Hey guys,
Thanks a lot for your advice,...
Hey guys,
Thanks a lot for your advice, especially you HacKer, it was so simple to just place the ofstream components in the main() program and eliminate the function fileout(). It worked like a...
|
Forum: C++
Jan 27th, 2006, 4:27 PM
|
|
Replies: 14
Views: 420
Simple output problem
Hi,
I have been struggling to understand why this simple program is generating the exact same number 100 times in the output.dat file. If I display the results on the screen (cout), the program...
|
Forum: C++
Jan 27th, 2006, 12:13 PM
|
|
Replies: 4
Views: 234
Thanks nnxion for the tip, putting in the for...
Thanks nnxion for the tip, putting in the for loop around the out statement works and prints out all the data into the output file.
However, there is a problem, all the data is identically the same...
|
Forum: C++
Jan 27th, 2006, 8:33 AM
|
|
Replies: 4
Views: 234
Numerical data output to a file
Hi everyone,
I have written a MC numerical integration program for solving indefinite integrals. The problem I am facing is trying to dump the output of the numbers generated to a file so I can plot...
|
Forum: C
Jan 26th, 2006, 4:14 PM
|
|
Replies: 4
Views: 226
|
Forum: C
Jan 26th, 2006, 1:28 PM
|
|
Replies: 4
Views: 226
Math functions
Hi everyone,
I have a problem regarding certain math functions in C/C++.
I am trying to use the sqrt() function in my program, but I get compilation errors, stating that the library has not been...
|