I don't really understand what you are supposed to be doing with the 2D array but
for( ren=0;ren<b;ren)
should probably be
for( ren=0;ren<b;ren++)
and this happens in two places.
Type: Posts; User: petermichaux
I don't really understand what you are supposed to be doing with the 2D array but
for( ren=0;ren<b;ren)
should probably be
for( ren=0;ren<b;ren++)
and this happens in two places.
I did a google search for "fibonacci recursive" and found a good pdf.
www.comp.leeds.ac.uk/cs12/Handouts/9-Fibonacci.pdf
Then I wrote the following code that seems to work just fine.
...
Please try to explain what you mean by "then i have a list of test file". That doesn't mean anything to me.
I'm sure some of this program will be in C++ so...
I'd like to write a program that automatically produces tex files for high school math test. This involves having a database of questions and...
I did check google and always do. Should I state that at the top of a new question? It is not easy to find C code for the inverse error function.
-Peter
I'm doing some simple confidence interval statistics. I need to calculate normal curve areas. Where can I find a C function that calculates the z-distribution?
Thanks,
Peter
Thanks for the reply. Great info! I'll try to install gpof and try it out.
Peter
Where can I read about writing faster C code.
For example, today I saw in a book something about the type double_t that is defined in c99. Apparently this type is optimized for floating point...
I don't know which books are good for learning C. However, I've heard warning against anything written by Schlidt(sp?). Apparently lots of errors.
As far as I know, the standard two C reference...
Please post a sample of the text file too.
I was confused because I saw some text that had the operator new[] in a discussion about overloading. I thought this would appear in a statement like
int *ip = new[] int[100];.
Now I realize that...
I was more interested in the placement of the keyword inline.
I will switch my destructor to be
~Matrix() {delete[] mat;}
I thought that maybe delete was used with new and that delete[]...
Hi,
After years of C programming, I'm starting to learn C++ and am amazed at the number of keywords and how much more complex the syntax is. It is becomming clear to me that C++ is meant for big...
It sounds to me like you are doing the perfect thing. Get the theory from school and since they don't teach the practical part you are looking for you are getting that yourself. But like some others...
I'm taking a guess at what you are trying to do. The following works.
#include<stdio.h>
main()
{
int x,y;
int *p,*q,a;
I would do what Walt says. Just incase you need more direction:
I didn't run the code below but you'll need lines like it.
You have to make sure that the fname character array is plently long...
I think the book called Numerical Recipies talks a lot about this
in the following link scroll down to chapter 7 to read the pdf files
http://www.library.cornell.edu/nr/bookcpdf.html
-Peter
That code works perfectly for me when compiled with DevC++/gcc
Getting code handed to you probably isn't the best way to learn but here you go. The code may have bugs so don't blame me if you get an F. (N.B. This code will say that zero is even.)
#include...
I followed the instructions in the CurrencyCalculator tutorial exactly. I don't know much/anything beyond that. On my computer the tutorial starts with
...
I think MS Visual C++ has a interface builder. That might even be what "visual" stands for in the name. I never have figured out this visual basic, visual C++ naming system. Anyway, I think the guy...
Are you using Windows XP, Mac OS X, Linux?
I just learned how to make a simple GUI on a Mac with the Interface Builder. It was very easy to create fields and buttons.
I do some genetic...
#include<stdio.h>
#include<string.h>
int main(void)
{
char name[31] = "Hello Teri";
FILE *fpwrite;
int i;
If I remember correctly, when I had Caldera OpenLinux on my computer years ago I used a text editor called kwrite. I thought it was easy to use for programming. I think it automatically indented and...
I'm not sure I understand what you mean by biased random number or influenced. Do you want more of the generated numbers to be in a certain region from 1 to 44. For example, do you want something...