- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Hi everyone, I am writing some PDE code, and I am just starting to think about parallelizing it. The code is extremely parallelizable by both CUDA (at the lowest level) and regular threading at the higher level. Specifically, I am coding a matrix multiply, and the matrix is banded, so … |
|
Re:
[CODE]#include<stdio.h> #include<conio.h> int main(){ float Area; float r,h; #define pi 3.41; printf("enter the radius of the circle in centimeters\n"); scanf("%f",&r); printf("enter the height of the cilinder in centimeters\n"); scanf("%f",&h); Area=(pi*r*r)+(pi*r*h); printf("THE AREA OF THE CILINDER IS:%f",&Area); return 0; getch(); } [/CODE] |
|
Hi, I would like to write a member function with a default argument, but the value of the default argument I would like to use is the value of the classes data member [CODE] class testdf {// testdf private: const int _defaultVal; public: testdf() : _defaultVal(1) {} int testMF(int arg … |
|
Hi I am trying to write something that compiles and runs correctly on both Linux and Windows. I am running bash in Ubuntu on Linux, and I try to set environment variables in the makefile just before the compile lines. I then write something in the code like [CODE] int … |
|
Hi, I am writing an application in which I make a map of strategies keyed by a string symbol. In order to construct the strategies I pass the constructor a filename, out of which it reads out some data, into an initializing map. It is possible that some data might … |
|
Re:
Hi, i new here.... I'm making a program which can calculate the below expansion of Ln)(1 + x) = x/1 - x^2/2 + x^3/3 - x^4/4 + x^5/5 - x^6/6 Below is my syntax [CODE] #include <iostream.h> int main() { float num1; cout<<"Enter a number: "; cin>>num1; num1 = num1/1 … |
|
Re:
A little program I made to try and remeber C++, first program I've written in C++ in about a year. Tested and working under windows 7 64 bit, run via command line. If you have any improvements or ideas please leave a comment. Cheers K0ns3rv |
|
Hello, I have a difficult memory error to find. I have narrowed it down to a small piece of code, tiny in fact, but the symptoms are baffling to me. I tried to find it with electric fence, but electric fence found nothing. The problem is complicated by my liberal … |