Disregard this post as well.
The Ski
Type: Posts; User: TheSki
Disregard this post as well.
The Ski
Yes the output is supposed to be a little screwy as well. But Oh well. Only 2 more weeks of this class. But speaking of classes, That is the topic we are working on now. Any suggestions for a...
Ok Please IGNORE this post. Corrected Problem...
Still need help on the other post though.
// This program is to use the bucket sort method to rearrange given numbers.
#include <iostream.h>
#include <fstream.h>
using std::cout;
using std::cin;
using std::endl;
#include...
Ok here is what I am doing. I am comparing 6 numbers for which number has the most digits. For some reason my loop goes through and counts my smallest number.
Here is my code:
for (...
Already corrected the problem. Was going this way:
int array2[a][b] = {0};
supposedly I can not do that with my compiler.
Man I am just adding on to this stupid question today. Here is one more question.
Half way through my program, I am intializing a 2-D array. Now when I go to compile the program, it says ...
Cool!!!! Learning about pointers right now, and I do not see how pointers are useful in Programming, but hay, those who created the language came up with it, so I shall learn it and use it.
Salem, Thanks!
One quick question. What does this '->' comand do in the program?
A.Sebasti,
Thank you for code.
Also anyone have any input on the bucket sort?
But I am looking to know if there is a code to use that tells me the length of an integer.
For example, the number 1204 contains 4 digits. also if anybody ever did a bucket sort program, what is...
Well thanks for the feedback, but I was cutting close on time, just finished the program like 30 seconds ago and already turned it in. I was not required to use functions, but it makes things look...
Ok here is a little code I am working on:
#include<iostream.h>
using std::cout;
using std::cin;
using std::endl;
const int n = 4;
bool checkrows (int thesquare[][n], int numrows, int...
Well I just finished the program and it will go to 50,000 indexes. I am using a Linux system to program and compile. Like I said, my instructor is killing me. Thanks Gang for your input.
Forget it!
I Found it write after the message posted.
The Ski
But hay try this program and see what you think.
The Ski
Hay gang, Well my instructor has given me this assignment to write code for the Sieve of Eratosthenes algorithim. Never heard of that? That makes 167,000 of us as well. Anyways, You do not have to...
ok so as far as code written, how do you correct that and stop the program from running like a rapped ape when I execute it?
Ok corrected the obvious "Ski is Blind errors" But now my little problem is the assignment of int to double error. When multiplying integer to a double, promotion should take place or am I doing it...
Thank You!!!!!!!!!!
What up gang, Hay this is The Ski calling out to all you helpful and fine programmers out there in Wonderland, and my wonder of the night is what am I doing wrong with the arrays? I do pay attention...
Thanks, but that is not what I am looking for. I am looking for a mathmatical formula that will test a number to see if it is perfect. One of the classmates on my other board helped me out. Thank...
Ladies and Gentlemen, does anyone have a clue as to writing a formula to test for Perfect number?
Example:
1+2+3=6 6 is a perfect number
1+2+3+4=10 10 is not a perfect number. Supposedly...
Thank you! It helps if when I go through my notes that I use the right notes that are for the program that I am working on rather then the previous one.
Here is my code:
#include <iostream.h>
using std::cout;
using std::cin;
using std::endl;
void triplecallbyreference( int & );
Thank you Thank You! And Thank you Again. 4 more eyes are deffinetly better then my 4.