I would like to create a multi-column listbox that looks something like this... http://www.summware.com/Images/ListBox.jpg except it will have five columns with the ability to click on them to sort...
Type: Posts; User: gflores
I would like to create a multi-column listbox that looks something like this... http://www.summware.com/Images/ListBox.jpg except it will have five columns with the ability to click on them to sort...
I would just like to have a general idea on how one would do this. For example, given this website http://www.allmusic.com/cg/amg.dll?p=amg&sql=10:pwx8b5m4tsqe, how would a person extract the...
Ah yes... I made sure that all the other pointers were set properly and set the current's data members (left, right, data) equal to NULL and then deleted current. That seems to be working just fine....
I'm writing an iterative delete method for my BST class. I'm a little confused on what to do when I've found the node and I want to delete it. I've developed this small code and I've removed the...
Would there be a significant difference with Java? Also, so is C considered a low-level language?
So, essentially, it's a direct translation?
Ok, I understand that assembly language is considerably faster than higher level languages, but I don't understand why? Is it because it just has to pass through the assembler to generate executable...
3.) Yeah, that seems the best way (to return a reference), but when I do, I get the error in the first post. I found one other place that doesn't return a reference, so maybe it's correct this way...
Ok, so I did a bit more researching online and I added some more code.
I've overloaded ++ and -- (both prefix) and != and added getData (thanks neandrake). I also got the for loop (which I had seen...
Ah, thanks. My professor gave me the code like that. It's working now, somewhat. However, he didn't tell us to overload the postfix (++). I'm assuming this is necessary in order to implement the end...
I know there must be lots of these posted, but I search on google and on here, and I'm still having trouble.
We still haven't covered iterators fully and I'm having trouble with it. If anyone has...
Ah, got it. In fact, I think I had that error last week. Thanks.
Ok, I sort of understand, but could you give me an example of when 2 files will be defined by the same name? Does this happen often with large projects?
I've never understood this...
#ifndef class_h
#define class_h
What exactly is it doing? Is it checking if there are other classes with the same name? Secondly, does the name matter?
What about the overloaded operators? Are they not inherited? They're not working either.
MyString class.h (base class)
#ifndef MYSTRING_H
#define MYSTRING_H
#include <iostream>
#include <string>
#include "LoggableIFC.h"
You can post bad habits too, so that I know not to do them. ;)
Do you guys write like pseudocode or do UML designs (I hate them)? We started doing them and they are just very annoying. I guess I...
I am looking for tips for programming. I am in the second course for C++ and am wondering if there are any tips or any good habits you guys have, especially for those that have coded for a job.
...
How does one make an object null? I think in Java, one could merely do
anObject = null; but I could be wrong. Basically, I have an array of objects and I want to delete one of the objects. I think...
I would also recommend to buying a book. I was thinking I could get learn C++ using the internet, but purchasing a book is so much greater and convenient. I'm using Starting Out With C++ ($11 used)....
Ok, so it is just me!
That's what it says. Could it be where my files are saved? They are in C:\Program Files\Dev-Cpp\My Programs
Alright, I'm going to sleep. I'm exhausted. Thanks for the...
I've searched and read some of the topics. I've read this. and it's still not working. I can't seem to split up my program into 3 pieces. I've managed to split the program into 2, seperating the...
Well, thank you. That clears things up for me. I was just a little confused since the bubble sort in the book uses a do-while loop, and on other sites, I saw 2 for loops. Thank you.
Ok, I'm learning the bubble sort from my textbook, and it looks slightly different than the bubble sorts that I've seen online. Then, I read that there are different types of bubble sorts. However,...
I read this after googling.
You can name your variables a little bit better to represent the data they actually contain.
Lastly, you can initialize the variable 'a' inside the for loop, like...