Search:

Type: Posts; User: bearcat19

Search: Search took 0.01 seconds.

  1. Thread: Bucket Sort

    by bearcat19
    Replies
    0
    Views
    3,083

    Bucket Sort

    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...
  2. Replies
    6
    Views
    911

    Thanks. I will definetly try commenting out the...

    Thanks. I will definetly try commenting out the "bad" sections.
  3. Replies
    6
    Views
    911

    Ok thanks,yes I did forget the #include ....

    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...
  4. Replies
    6
    Views
    911

    Help with reading files into program

    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...
  5. Replies
    1
    Views
    1,349

    help using push_back

    I need help using the push_back operation. See code.

    #include <iostream>
    #include <iomanip>
    #include <cstdlib>
    #include <ctime>
    #include <vector>

    using namespace std;
  6. Replies
    7
    Views
    1,403

    Thanks Chop! K

    Thanks Chop!
    K
  7. Replies
    1
    Views
    874

    array of vectors

    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...
  8. Replies
    7
    Views
    1,403

    I used the one like Dizolve did and now I get an...

    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...
  9. Replies
    7
    Views
    1,403

    Thanks guys. I understand now & am no longer...

    Thanks guys. I understand now & am no longer confused.
    K
  10. Replies
    7
    Views
    1,403

    Call me stupid. But I'm still confused. How am I...

    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?...
  11. Replies
    7
    Views
    1,403

    Problems with program

    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...
  12. Replies
    2
    Views
    1,360

    Ok, I fixed that. Now when I run the program it...

    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...
  13. Replies
    2
    Views
    1,360

    help with 1 function

    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...
  14. Thread: Bubble sort

    by bearcat19
    Replies
    5
    Views
    1,685

    Sure. I'm trying to rotate the letters in...

    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...
  15. Thread: Bubble sort

    by bearcat19
    Replies
    5
    Views
    1,685

    Thanks, but what do I do with *int NumPositions*?...

    Thanks, but what do I do with *int NumPositions*?
    K
  16. Thread: Bubble sort

    by bearcat19
    Replies
    5
    Views
    1,685

    Bubble sort

    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...
  17. Replies
    1
    Views
    1,138

    Help with "scanf"

    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);
  18. Replies
    3
    Views
    1,402

    Supposed to go up to 20. and, I mainly need help...

    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 ...
  19. Replies
    3
    Views
    1,402

    Help with loops please!!

    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...
  20. Replies
    1
    Views
    1,770

    Loops using while statement?????

    :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...
Results 1 to 20 of 20