|
[Sponsors] |
August 27, 2006, 07:50 |
Programming C, Basic
|
#1 |
Guest
Posts: n/a
|
1)How can someone achieve dynamic memory allocation in Basic? 2)How can someone pass as arguments multidimensional arrays in subroutines in Basic and C?
|
|
August 28, 2006, 09:01 |
Re: Programming C, Basic
|
#2 |
Guest
Posts: n/a
|
I don't remember much about Basic. I am actually surprised it's still in use.
As for C: Pointers are preferable to the (bracket) arrays. In that way, an array is defined by the pointer to its first element and its size. Those can be passed to functions (subroutines). Check out "The C programming language" by the C creators Kernighan and Ritchie. (and also consider posting questions like this on a programming forum) |
|
September 3, 2006, 22:08 |
Re: Programming C, Basic
|
#3 |
Guest
Posts: n/a
|
Dear sir,
I am writing program in C for one dimensional unsteady comoressible flow. I am writing it with the help of Patankar's book on Numerical heat transfer & fluid flow. I need guidance for obtaining convergence & providing boundary conditions. Can you provide me the similar type of a program from which I can obtain some guidance? Can you recommend me some book regarding the same, that is available free online, so that I can download it? Waiting for your reply. Best Regards Amol Korde |
|
September 12, 2006, 23:42 |
Re: Programming C, Basic
|
#4 |
Guest
Posts: n/a
|
Dear sir,
I am facing difficulties in applying the boundary conditions while writing C program on one dimensional unsteady compressible flow.Please guide me about the same. Is there a similar program available on line so that I can refer it? Reply soon. Best Regards Amol Korde |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Beginner: How to bridge the gap between basic C++ knowledge to openFOAM programming | bigbang | OpenFOAM Programming & Development | 14 | July 10, 2018 06:34 |
A book for a beginner wanting to learn programming | frank | Main CFD Forum | 9 | May 13, 2014 00:15 |
Basic Blade Design Code | apoorv | Main CFD Forum | 0 | April 5, 2010 07:37 |
OpenFoam programming | prapanj | OpenFOAM | 10 | March 18, 2010 08:23 |
Programming in OpenFOAM | vinu | OpenFOAM | 2 | July 11, 2009 11:16 |