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,...
Type: Posts; User: pityocamptes
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,...
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!
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...
How about this:
for(int i=0; i<256; i+=8)
{
for(int x=0; x<8; x++)
{
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...
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.
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...
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>...
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...
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...
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....
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)
{ ...
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.
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...
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)
{
...
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...
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...
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...