Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
18% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
7
Posts with Downvotes
1
Downvoting Members
7
2 Commented Posts
0 Endorsements
Ranked #4K
~48.0K People Reached
Favorite Tags

16 Posted Topics

Member Avatar for humbug

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..

Member Avatar for yw_046
2
31K
Member Avatar for mcodesmart

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 …

Member Avatar for pappu.thakare.5
0
314
Member Avatar for Member #46692

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, …

Member Avatar for parisa_hr
2
15K
Member Avatar for mcodesmart

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 { …

0
88
Member Avatar for mcodesmart

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 …

Member Avatar for Momerath
0
327
Member Avatar for mcodesmart

[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 …

Member Avatar for Ancient Dragon
0
126
Member Avatar for mcodesmart

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 …

Member Avatar for Varnius
0
134
Member Avatar for StacyAnn1296

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..

Member Avatar for Nick Evan
-1
77
Member Avatar for Member #114542
Member Avatar for reliableravi

In the crudest sense, an automata machine is a machine which uses the model of a finite state machine (FSM) for programming.

Member Avatar for abhimanipal
0
256
Member Avatar for nigelmercier

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) …

Member Avatar for nigelmercier
0
220
Member Avatar for mcodesmart

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]; …

Member Avatar for Bluefox815
0
206
Member Avatar for ramy89
Member Avatar for ramy89
0
121
Member Avatar for softapu

[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??

Member Avatar for mcodesmart
-1
107
Member Avatar for salah_saleh
Member Avatar for surindersharma
0
78
Member Avatar for mcodesmart

My name is mahder and I am new in this forum. I hope I will like this joint.

Member Avatar for surindersharma
0
66

The End.