Hello. I need help with the Bucket Sort. I searched through the C++ board, as well as my book and couldn't find anything useful to me. The code is below.
Thanks!
#include <iostream>
#include...
Type: Posts; User: bearcat19
Hello. I need help with the Bucket Sort. I searched through the C++ board, as well as my book and couldn't find anything useful to me. The code is below.
Thanks!
#include <iostream>
#include...
Thanks. I will definetly try commenting out the "bad" sections.
Ok thanks,yes I did forget the #include <string>.
The functions NumWords & Replace are still saying"Local function definitions are illegal" I don't know what this means, I've never seen this error...
I have a lot of code for this. I also have 13 errors. I have tried to correct them but some are absurd to me, for example:
"Local function definitions are illegal" Could someone point me into the...
I need help using the push_back operation. See code.
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
#include <vector>
using namespace std;
Thanks Chop!
K
I need to make a function to initalize the diagonals of an array of 10 vectors to any one floating point number passed as a parameter. The part that I'm unsure of is to initalize the diagonals, how...
I used the one like Dizolve did and now I get an error that says:
switch expression of type char[26] is illegal. It could be because I have a switch inside of a switch. See below.
#include...
Thanks guys. I understand now & am no longer confused.
K
Call me stupid. But I'm still confused. How am I going to store each letter of the alphabet and print it out? Would I make another array? And could I use switch instead of if else statements?...
I have a question about selection 1 on my menu. Its supposed to count the occurrence of each letter in the file its processing. Then its supposed to create a percentage of each letter occuring in the...
Ok, I fixed that. Now when I run the program it prints out a 10x10 vector, then tells me the average. but after the average it has 0.50 in a 10x 10 vector I need the floating point value to...
Hello. I am having trouble with this program that I wrote. Just one function is giving me a problem, the error that I get is:binary '=' : no operator defined which takes a right-hand operand, you get...
Sure. I'm trying to rotate the letters in CharList depending on the sign of the integer. CharList is a char vector containing the 26 letters of the alphabet. NumPositions is supposed to be the...
Thanks, but what do I do with *int NumPositions*?
K
I am writing a program that will rotate the letters in the vector CharList depending on the sign of the integer. I need help with the bubble sort (my RotateLetters function.) This is what I have so...
Here is my program so far....
# include <stdio.h>
main()
{
int count, abundant, perfect, deficient, sum=0, num;
printf("Enter a number\n");
scanf("%d", &num);
Supposed to go up to 20. and, I mainly need help getting the output to generate a table. which lists...
NUMBER TYPE
2 Deficient
3 ...
I need help writing a program with this loop. I do not need help with the math part of it. The question is, A perfect # is a # which is the sum of all its divisors except itself. Six is the first...
:confused: Help, I am trying to write a C program that uses the while and for statements. Also my output should generate a table with two columns. The program is supposed to classify each integer as...