Search:

Type: Posts; User: Beowolf

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Pentium II

    by Beowolf
    Replies
    12
    Views
    2,516

    As I said in my initial post, I do not want to...

    As I said in my initial post, I do not want to use Wikipedia.

    Thanks for the information, it's given me some good stuff to look into.
  2. Thread: Pentium II

    by Beowolf
    Replies
    12
    Views
    2,516

    Pentium II

    Hey,

    I'm writing a report on Intel's Pentium II (in broad), specifically focusing on what sort of new technology and architecture it brought to the market in 1997 and how it was improved over...
  3. Thread: output format

    by Beowolf
    Replies
    2
    Views
    1,493

    output format

    I need to format my output like "%5d\n", where all the output would be integers. Is there anyway to do this using cout?

    For example, the output would look like:


    14640
    6565
  4. Replies
    4
    Views
    2,761

    Update: I have 3 files - prog6.cpp, sorts.cpp,...

    Update: I have 3 files - prog6.cpp, sorts.cpp, and sorts.h. sorts.h is:


    #include <stdexcept>

    void selectSort(int array[], int first, int last) throw (std::range_error);
    void bubbleSort(int...
  5. Replies
    4
    Views
    2,761

    calling a method from another file

    I know this is a real dumb question but my mind completely went blank. In sorts.cpp I have three methods - bubbleSort(int[] array, int first, int last), selectionSort(same), quickSort(same). I...
  6. Replies
    10
    Views
    1,901

    Ah, thanks. Another logic problem that I am...

    Ah, thanks. Another logic problem that I am stuck on. I have this code:


    cout << "\t[" << *argv[seedIndex] << "]\n";

    if(*argv[seedIndex] < 1)
    {
    cerr << "Invalid Seed...
  7. Replies
    10
    Views
    1,901

    Also, any idea as to why I am getting this error?...

    Also, any idea as to why I am getting this error?


    78 Cprog6.cpp [Warning] comparison is always false due to limited range of data type


    if(*argv[countIndex] > 32767)
    {
    cerr <<...
  8. Replies
    10
    Views
    1,901

    Any idea why when I put OR statements inside the...

    Any idea why when I put OR statements inside the working if statement that it then no longer works?
  9. Replies
    10
    Views
    1,901

    Well I think I just solved my problem, by...

    Well I think I just solved my problem, by changing it to:


    if(*argv[typeIndex] != 's')

    However, when I try to add to this statement, I get an error, like above when I run the program - even if...
  10. Replies
    10
    Views
    1,901

    invalid comparison

    Hey, I am getting a compiler error that I don't agree with (haha). I am attempting to compare chars, but the error the compiler is giving me is:


    46 prog6.cpp ISO C++ forbids comparison between...
  11. Replies
    10
    Views
    1,563

    srand() question

    Hi,

    I have a program that takes a seed and generates a random number using srand and rand, however there is another requirement to it that I don't understand and am hoping that you may make sense...
  12. That compiles but it doesn't work (still says ":...

    That compiles but it doesn't work (still says ": not found").
  13. Checking to see if a string is just a newline character

    Hey, I am trying to check and see if a user-inputed string contains just the newline character (i.e. a blank return). The code I have right now doesn't compile, and I believe that is because it...
  14. Replies
    2
    Views
    930

    Exploding a string?

    I have a program that takes in a line of input, separates it into individual words, and then runs each of those words through a method that replaces illegal characters (like ! and @) with spaces, and...
  15. Replies
    8
    Views
    1,623

    Ok, thanks. When I was trying it a different way...

    Ok, thanks. When I was trying it a different way however I came across a compiler error that intrigued me. The error was this:


    18 main.cpp ISO C++ forbids comparison between pointer and...
  16. Replies
    3
    Views
    1,830

    Getting the word count of a file

    Is there any way to get the total number of words that is in a text file without looping through each line and breaking it down into words and keeping track of that number with a counter variable? ...
  17. Replies
    8
    Views
    1,623

    So if I wanted to convert every character that is...

    So if I wanted to convert every character that is not a letter, ', or a space to a space, the code would be:


    string modifyWord(string ss)
    {

    for(int xx = 0; xx < (int)ss.length(); xx++)...
  18. Replies
    8
    Views
    1,623

    So something like this? #include ...

    So something like this?



    #include <ctype.h>

    char checkVal(char x)
    {
    if(isalnum(x))
    return x;
  19. Replies
    8
    Views
    1,623

    Replacing characters

    Hey,

    I would like to replace every character in a string that is not a-z A-Z 0-9 or ' with a space. Currently I am trying to approach it this way:


    replace(ss.begin(), ss.end(), '!', ' ');
    ...
  20. Replies
    17
    Views
    4,351

    Update: apparently the NodePool default...

    Update: apparently the NodePool default constructor is being called and my node .left and .right values are being saved - I added a cerr output at the start of the method to print "NodePool Called"...
  21. Replies
    17
    Views
    4,351

    Thanks for the help! I have a new question now. ...

    Thanks for the help! I have a new question now. When I run my program it unexpectantly ends - "This application has requested the runtime to terminate it in an unusual way". After putting in...
  22. Replies
    17
    Views
    4,351

    My solution for line 54 worked, yes. I changed...

    My solution for line 54 worked, yes.

    I changed code to:


    Node& NodePool::operator[] (int indx)
    {
    ...
    }
  23. Replies
    17
    Views
    4,351

    Ok, here is my thinking. I need myNodePool to be...

    Ok, here is my thinking. I need myNodePool to be accessible everywhere, just like my bst tree. But i want myNodePool to "inside" of bst, i.e. if I have a var "bst tree" then to access myNodePool it...
  24. Replies
    17
    Views
    4,351

    Ok, added NodePool myNodePool in bst.h, however...

    Ok, added NodePool myNodePool in bst.h, however now it is telling me:


    58 bst.h `NodePool' does not name a type

    So inside of bst.h I added #include "node.h", and now it tells me:


    21...
  25. Replies
    17
    Views
    4,351

    Ok, i'm just using a regular object. bst...

    Ok, i'm just using a regular object.


    bst tree;

    Now the error is:


    21 bst.cpp `myNodePool' undeclared (first use this function)
Results 1 to 25 of 101
Page 1 of 5 1 2 3 4