Search:
Type: Posts; User: H aun
Search :
Search took 0.01 seconds.
March 23rd, 2009 08:53 PM
for the gmp library, how would i install that into Dev C++, windows Vista?
March 21st, 2009 03:54 PM
so is that what caused it to be negative
March 21st, 2009 02:55 PM
Ok so i am using a loop to make a large array of additions.
the loop takes all of the values before it and adds them together, then saves them into the array.
(in this case the short had would...
March 18th, 2009 12:25 AM
:D:D:D:D
I FINALLY FIGURED IT OUT!!!!!!!!!!!!!
Funny things happen at 11, like good ideas :cool:
#include <cstdlib>
#include <iostream>
#include <cmath>
March 16th, 2009 11:23 PM
could you possibly post an output?
My compiler doesn't like your code :blush:
March 16th, 2009 04:07 PM
this also sparked an interest:
http://www.bleepingcomputer.com/forums/topic185872.html
and if you are really curious here is an old forum about the same project (started by me)...
March 16th, 2009 04:03 PM
its not homework related at all. My highschool doesnt have a computer programming course. This is more of me watching Pi and reading some other stuff.
In short im a bad programmer with a liking...
March 15th, 2009 06:55 PM
Ok i removed the -1 (now its: pre = matrix[row][state_col] + pre;)
but the reason i put that there was it seemed to be the only way for it to work :
|1|1|2|4|8|
|1|3|8|20|48|
|3|10|31|88|...
Ok. I have been working on a math program for quite a while now, with limited success.
You may have seen my other project before, which involved a triangular Matrix. But that has changed.
This...
January 24th, 2009 06:56 PM
ever better animation, if this helps at all...
http://www.bertolacciprod.com/Rule_animated_4_lines.gif
January 24th, 2009 02:56 PM
I dipped into Visual studios, always kicked my butt. might dip back in there
January 24th, 2009 02:39 PM
well with out the system("pauses") you need to go into command prompt, then navigate to the executibal and run it.
You put the pauses in places (well at least for me) when something is read out...
January 24th, 2009 02:27 PM
no, it works in the program
January 24th, 2009 01:03 PM
did you include the files in the actual headder? also the including a dir is a good idea.
January 24th, 2009 12:56 PM
any way i think its a good idea for a new programmer to get into the habit of commenting their code. but thats me.
So! Rayman any other problems?
Another thing you might want to do is use...
January 24th, 2009 12:53 PM
Thanks for settin down the law man. good job, wip those programmers into shape. No useless commenting! it clogs up your code
January 24th, 2009 12:04 PM
Most of them are (haha) but thats ok. I like to know every thing on the spot with good description. Mainly i do it so that people know what the heck they are looking at when i need help, or for when...
January 24th, 2009 11:58 AM
:o i think its a good idea to comment a fair ammont, i comment on every line most of the time. But if you do thats ok....
January 24th, 2009 11:19 AM
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
bool StringToInt(const string &s, int &i)
{
istringstream myStream(s);
if (myStream>>i)
January 24th, 2009 10:26 AM
haha i know how you feel
what you need to do is figure out a way to make digit and number equal, right now nothing is being entered,
I tried
string digit;
int number;
cin >> digit >>...
January 24th, 2009 10:06 AM
oh right haha, thats the thing, if the matrix data is trianglar and starts at the top middle. what size is it?
Im thinking that i could do like matrix width/2 to get middle, the 0 for top.
January 24th, 2009 12:11 AM
Here is a better example, just 2 lines, animated
http://www.bertolacciprod.com/Rule_animated.gif
If you want to see more lines, just ask
January 23rd, 2009 11:37 PM
Hello! Obviously im new here, but my project is not.
I have been working on a "universal machine" and now i am in the final stages of its coding.
A universal machine requires a rule, and for...
Click Here to Expand Forum to Full Width