Search:

Type: Posts; User: pityocamptes

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    952

    Shape recog software?

    Where would one start to look at making some software that recognizes shapes? For example, how would you make software to overlay over video recordings and recognize an animal, vs a human, vs a tree,...
  2. Replies
    6
    Views
    2,985

    DEV C++ Compiler Questions re: Color

    How do you change the text of a cout so that it is a color other than the standard white? I would like to have the cout highlight certain data. Thanks!
  3. Replies
    9
    Views
    1,543

    Ok, miss read what you were trying to do. Looks...

    Ok, miss read what you were trying to do. Looks like you might need another for loop to move you through the columns.




    for(int rowBlock=0; rowBlock<256; rowBlock+=8)
    {
    for(int...
  4. Replies
    9
    Views
    1,543

    How about this: for(int i=0; i

    How about this:





    for(int i=0; i<256; i+=8)
    {
    for(int x=0; x<8; x++)
    {
  5. OK. I edited this post. I got the code to run and...

    OK. I edited this post. I got the code to run and it works. I have a question about the Copy Constructor and Destructor. If I pull them out of the program it still works fine. Why??? :confused: I...
  6. Ok, didn't see that in the rules. My mistake....

    Ok, didn't see that in the rules. My mistake. That sounds like a flame to me ;) j/k - Anyone feel free to change the title.
  7. I know thats how I have been doing it but the...

    I know thats how I have been doing it but the professor in this assignment seems to be getting a little sneeky :eek: It looks as if he is making the node somewhere in HIS main() and passing it to...
  8. How about this - you just need to figure out how...

    How about this - you just need to figure out how to sort the char array by extracting the number chars and converting them to real numbs, hint look for a delimiter...



    #include <iostream>...
  9. I know, this is where I got confused. So should I...

    I know, this is where I got confused. So should I not be generating a new node? Thats why based on the function params would I be doing such a thing or I wonder if the professors main() will be...
  10. Need help with C++ linked list using objects

    Here is what I have so far. The spec sheet the professor handed out was very strict. It only specifies what the member functions and classes will contain, no main() or program function info. I am...
  11. Replies
    1
    Views
    901

    Need help with string hash function

    Need some suggestions on how to effectively create a string hash function that will give me very little collisions. My hash needs to read in 5 letter words, all lower case and no alpha numeric mix....
  12. Ok. I got it to work with fread() where COL is 6...

    Ok. I got it to work with fread() where COL is 6 and I changed "counter" to "index" (trying to make it more readable).





    while(fread(programData[index],6,1,fptr) != NULL)
    { ...
  13. Thanks! As far as NULL vs '\0' our teacher said...

    Thanks! As far as NULL vs '\0' our teacher said to use '\0' as NULL is not recognized by all compilers/platforms. Any truth to that? Thanks again.
  14. How do you strip newline from char array?

    I am reading in a txt file into an array - programData[100][6] from Main. I cannot change the element sizes per specs. Is the newline char even being saved since ALL words being read in are 5...
  15. Replies
    3
    Views
    1,663

    Here is my delete node function. It works but I...

    Here is my delete node function. It works but I was wondering if there is any way to clean it up, seems a little long :eek:




    int deleteFirstNode(struct treeNode **rootPtr, int number)
    {
    ...
  16. Replies
    3
    Views
    1,663

    Thanks! I took your advice which made it a lot...

    Thanks! I took your advice which made it a lot better. As far as resetting the static int I made the function return a pointer to a static int, returned the address to the int and reset it to 1 when...
  17. Replies
    3
    Views
    1,663

    Need help with Binary Tree!!!

    Ok the commands are:
    a or A followed by a number to add to the tree (ex: a123)(finished)
    d or D followed by number to delete 1st node from tree that matches(ex: d123)(not finished)
    s or S followed...
  18. Replies
    1
    Views
    1,420

    Need some help with a C program...

    Hi all, new to the forum. I'm pretty desperate at the moment :eek: trying to get my &%$@^@$ C program to work. In my C class we are supposed to develop a "game" absed on Turtle Graphics. The...
Results 1 to 18 of 18