- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 7
- Posts with Downvotes
- 1
- Downvoting Members
- 7
16 Posted Topics
rand() is awsome... i love using it in my codes... however, i have had times when rand() has returned garbage, especially when you are trying to calculate third order differential eqns using monte carlo..
I have a base class called Matrix which has a function transpose. I also have a derived class Matrix2 which is inherited publicly from Matrix class Matrix { public: Matrix(); ... Matrix Transpose(void); ... }; class Matrix2 : public Matrix { public: Matrix2(); ... }; In my main code, I …
I think the way you set the polynomial really sucks. Why don't you use the same format as Matlab and set only the coeffiecents in an array where the index corresponds to the degree. For example, to set x^3 + x - 1, You could use a = [1, 0, …
I am trying to implement the datarecieved based event handler, I think I am able to receive data from the port, but having difficulties executing the event.. I have tried both ReadLine and ReadExisting.. can you please comment on my code.. Thanks, [CODE] public partial class Form1 : Form { …
Hello All, I am working with a program the reads data from a file and plots it to a graph in real time. My stream is coming from a microcontroller output and I am building an interface to display the data. I am using stream reader in my routine, but …
[B]Simple Question: Please read[/B] I have the following code snippet from my program that i am working on [CODE] bit running = 0; float var1, average_value; void is_something_running(void) { if (fabs(var1 - average_value) <= 0.001){ return *(&running) = 0; } else return *(&running) = 1; }[/CODE] var1 and average value …
Hello all, I would like to make a simple page showcasing my experience, bio, CV, research work and so on.. What web development platform (by platform i mean, web server, language, software) do you recommend for me to carry out this project? Ideally, i would like to have a server …
save the age of each user as an integer variable such as "reader_age" Then, you can classify it in C using the switch case method and adding up the different age groups..
I second. A linked list is the best option.
In the crudest sense, an automata machine is a machine which uses the model of a finite state machine (FSM) for programming.
I think the most underrated operator in C is the "%", the modulo operator. It is so versatile and can be used for tasks as the ones you descirbe. Especially in embedded programming where you would like to work with integers. Basically, given two positive numbers, x%n (x mod n) …
Hello, Please see the code below. it combines 2 strings into one. [code=c] #include<stdio.h> #include <string.h> int main() { char a[10], b[10], *p = NULL, *combine(char *s, char *t); strcpy(a, "horse"); strcpy(b, "fly"); p = combine(a,b); printf("%s\n",a); printf("%s\n",b); printf("%s",p); } char *combine(char *s, char *t) { int x,y; char r[50]; …
I am pretty sure that you are mixing types as griswolf has noted.
[QUOTE=WaltP;1155861]The 3 Laws of the Procrastination Society: 1) Never do today that which can be put off until tomorrow 2) Tomorrow never comes[/QUOTE] What is the third law??
What does bio-medical engineering have to do with software?
My name is mahder and I am new in this forum. I hope I will like this joint.
The End.
mcodesmart