Thanks for the help everyone. I finally got a value I can work with.
void matrix::time_for_ops()
{
int dummy = 0;
QueryPerformanceCounter(&start_tick);
for (int i = 0; i < 1000; i++)
Type: Posts; User: StevenGarcia
Thanks for the help everyone. I finally got a value I can work with.
void matrix::time_for_ops()
{
int dummy = 0;
QueryPerformanceCounter(&start_tick);
for (int i = 0; i < 1000; i++)
So, I've found some examples of how to use QueryPerformanceCounter(), but I've still getting a time of 0 seconds for my loop to 1000. I tried increasing the value to 100,000 but I still get 0 for my...
Hey, thanks. That will work great.
I am attempting to measure the time it takes for a for loop to iterate 1000 times and the time it takes for a multiplication operation.
I am having some trouble with measuring the ops with enough...
I appreciate you taking the time to look at it guys. You've given me some areas I can improve on. Thanks.
Hello. I have spent some time working on my BST tree and have finally gotten it to work. I was wondering if some people could take a look at my code and perhaps offer some criticism.
I would...
Doh! Unfortunately for me windows crashed shortly after my last post so I get to start from scratch on a clean install. Thanks for the feedback.
It's ignored? I thought I was passing the pointer to deletenode()? Am I way off base in thinking this?
Thanks for the feedback guys. I'm trying to use the debugger now. I think I see what's...
Hello. I am having some trouble with removing a node from my bst tree. The program simply exits if I try to remove more than one node from the tree, or when I try to remove a node and then display...
Thank you for the help. That fixed the problem for me. Much appreciated. = )
Ah. Thanks for the catch. I made the necesary changes (updated posted code), but I still revceive the same error. I probably should begin to use C++ strings. I am relearning some programming so...
I am trying to display the data from my list using an array that i pass to my class function display(). I can't seem to find any examples for what I am doing in the tutorials. When I attempt to...
Thank you so much! I was not handling all the cases, also I totally overlooked this bit of code!
Thank you to everyone that helped, I am so happy that my stupid sorted list works. I can't stop...
Thanks for the tips. I became really frustrated with everything last night and a friend reccomended that I make a separate class function to find the correct order in the list and then pass that to...
Thanks for the advice guys. I will definately check that out after I get a little more comfortable with C++.
I'm not sure how that works. In my spare time I am relearning the limited amount of programming knowledge I had at one time. It wasn't much. Thank you for the suggestion.
I see the problem now. Thanks for the input. = )
Thanks for the input. I've changed "if(prev == NULL)" to "if(!prev && !curr)" for checking if the list is empty. I am now getting the same error when I add more than one name. I think I've been...
When I try to display the list after adding names a pop-up tells me that a unhandled win32 exception occured.
Head is initialized to NULL in the constructor. Is this what you ask?
I am trying to insert names alphabetically into a linked list. It is compiling but I am getting runtime errors when I test it. Can anyone see where I'm going wrong?
int list::add(char...
Doh! Thanks guys. :)
Hello. I can't seem to figure out why my program is exiting when I try to insert into my linked list.
I'm sure it's something i keep overlooking, but I need a second pair of eyes to help me out. ...