Forum: C++ 23 Days Ago |
| Replies: 0 Views: 224 I need to check if a named pipe is empty. I am cycling through about 10 of them and if its empty I don't want to block until there is something in it I just want to move on to the next one. Is... |
Forum: C++ Oct 27th, 2009 |
| Replies: 8 Views: 215 what text editor in putty are you using? Can you not map your network drive and just open it in wordpad? |
Forum: C++ Oct 27th, 2009 |
| Replies: 3 Views: 253 I had that and it was because mspdb80.dll was missing. Check your directories and make sure nothing is corrupt. |
Forum: C++ Oct 6th, 2009 |
| Replies: 2 Views: 219 Sorry for the double, post deleted look at post above |
Forum: C++ Oct 6th, 2009 |
| Replies: 2 Views: 219 Your problem is in this line right here
age = (m * 100) + (y * 10000) + (d);
I somewhat see what you are trying to do but that's a strange way of doing it. Try three nested if statements. For... |
Forum: C++ Oct 6th, 2009 |
| Replies: 3 Views: 314 Draw these out and trace through the algorithm and it will make much more sense. |
Forum: C++ Oct 6th, 2009 |
| Replies: 2 Views: 258 What is Variable? If this is a class that you have written make sure that you are including the file that holds the class in the file that is giving that compile error. When you try to declare your... |
Forum: C++ Oct 6th, 2009 |
| Replies: 2 Views: 196 Definitely read the links provided above but the short answer to your question is that pointers point to data stored on the stack and everything else is on the program stack. But remember, the... |
Forum: C++ Oct 6th, 2009 |
| Replies: 3 Views: 355 You are close on the "sentence2[y]=*point[y];" part but sentence2[y] must be a pointer. As you have it in your code it is just a plain old variable. The & does return the address of the object, in... |
Forum: C++ Sep 18th, 2009 |
| Replies: 2 Views: 209 I am writing a database API in C++ and I cant seem to think of a good way to handle the errors. For example if certain error conditions are met I would like to set some sort of error flag and allow... |
Forum: C++ Dec 22nd, 2008 |
| Replies: 2 Views: 777 I just finished with my first year of Computer Science in college and over the break I wanted to learn how to do output from a computer using a C++ program to control different I/O hardware. I was... |
Forum: C++ Nov 28th, 2008 |
| Replies: 1 Views: 777 Ok Ive tried a new approach to this and this one goes into an infinite loop as well but I was able to figure out that this one keeps going back and fourth between node 0 and node 1 never progressing... |
Forum: C++ Nov 27th, 2008 |
| Replies: 1 Views: 777 Some of the code has been omitted. I am trying to write a DFS function to traverse a maze. It will eventualy add the nodes to a tree that I will traverse once I get the DFS working. Currently it... |
Forum: C++ Nov 25th, 2008 |
| Replies: 2 Views: 362 o wow ok ya im stupid I had declared it but not defined it and i was being dislexic reading the error message. Thanks so much |
Forum: C++ Nov 25th, 2008 |
| Replies: 2 Views: 362 I the compiler is giving me the following error on the constructor of graph however it has been defined in the public section. Error /tmp/ccku0faq.o: In function `Graph::Graph()':... |
Forum: C++ Nov 24th, 2008 |
| Replies: 2 Views: 658 o ok that makes sense. thanks |
Forum: C++ Nov 24th, 2008 |
| Replies: 2 Views: 658 I am trying to pass the size of the matrix array during the constructor but its giving me the following error. Is there a different way to do this?
In file included from Main.cpp:1:... |
Forum: C++ Nov 10th, 2008 |
| Replies: 2 Views: 435 that worked thanks. Ya i know about the others. Im working on them now. |
Forum: C++ Nov 10th, 2008 |
| Replies: 2 Views: 435 This is for a frequency table that will eventually allow me to build a Huffman coding tree. I want the class FrequencyTable to simply hold a vector of the type FrequencyNode however I keep getting... |
Forum: C++ Nov 2nd, 2008 |
| Replies: 8 Views: 572 Also note that a warning is different from an error. Code will compile and run with 100 warnings but it wont compile or run with even a single error. Warnings are little helpful hints given by the... |
Forum: C++ Nov 2nd, 2008 |
| Replies: 7 Views: 1,121 Alright thanks to everyone. I figured it out using a switch statement to convert the chars. Its not very elegant but it works for now. Thanks Lerner that info will come in handy later.
Thanks... |
Forum: C++ Nov 1st, 2008 |
| Replies: 4 Views: 339 well first of all the paramater was written wrong. It needs to be something like int readSeq(int NAMEOFARRAY[]) The array has to have a name. I still dont understand what the function is trying to... |
Forum: C++ Nov 1st, 2008 |
| Replies: 5 Views: 770 Now that you have all the functions declared and data members declared all you have to do is implement the functions. For example you would want the function GetFirstName(void) to return the first... |
Forum: C++ Nov 1st, 2008 |
| Replies: 8 Views: 709 A constant is not a type. It just tells the program not to modify that type for example you could have an integer const or a string const or a char const or any other type. Looks like you want an... |
Forum: C++ Nov 1st, 2008 |
| Replies: 4 Views: 339 http://www.cplusplus.com/doc/tutorial/arrays.html
read that it might help. I am kind of confused on what you need to do. What is readSeq supposed to return? for example what is the int that it... |
Forum: C++ Nov 1st, 2008 |
| Replies: 7 Views: 1,121 Ok so after looking at it a little more I think I figured out the problem I just dont know how to work around it. I am trying to bring in ints from the file however istream.get(element) only accepts... |
Forum: C++ Nov 1st, 2008 |
| Replies: 7 Views: 1,121 Thanks for the reply. The traversal was for testing purposes I wanted to see what the tree was holding to see what was being brought in. I will try your suggestion tomorrow when I get up.
Thanks... |
Forum: C++ Oct 31st, 2008 |
| Replies: 7 Views: 1,121 No one? Im really perplexed by this one. |
Forum: C++ Oct 31st, 2008 |
| Replies: 7 Views: 1,121 Our task is to write a Binary Search Tree and the data has to be input from a .txt file where in the data is held as such 12345678 Each digit is a new node in the tree to be inserted. My Binary Tree... |
Forum: C++ Oct 14th, 2008 |
| Replies: 7 Views: 500 Alright well my bad I had some other wrong quotes that I fixed and it took care of the problem. Thank you stilllearning for the help.
If anyone knows the general description of that problem for... |
Forum: C++ Oct 14th, 2008 |
| Replies: 7 Views: 500 ooo ok that must be from a copy and paste problem. I changed that but it didn't fix anything. Do you know what that error generally means maybe I can spot something wrong. |
Forum: C++ Oct 14th, 2008 |
| Replies: 7 Views: 500 What do you mean wrong quotes? Like the single quotes should be double? Wouldn't that meant that the objects were strings? |
Forum: C++ Oct 14th, 2008 |
| Replies: 7 Views: 500 I also just noticed that it throws that same error for any line that uses one of the elements of the opTable array that I added such as ')' |
Forum: C++ Oct 14th, 2008 |
| Replies: 7 Views: 500 I am trying to compile my program and I am getting alot of these errors:
Parser.cpp:9: error: stray ‘\200’ in program
Parser.cpp:9: error: stray ‘\231’ in program
Parser.cpp:9: error: stray ‘\342’... |
Forum: C++ Oct 13th, 2008 |
| Replies: 9 Views: 3,069 http://www.cplusplus.com/reference/clibrary/ctime/ |
Forum: C++ Oct 13th, 2008 |
| Replies: 11 Views: 1,438 o crap i must have zipped an older version. I had had that and it still didn't work. I just ended up redoing the entire header and now it works so thank you to everyone who helped |
Forum: C++ Oct 13th, 2008 |
| Replies: 11 Views: 1,438 I think its zipped now thats the first time I have done that. I am sorry its been so long. I had an emergency that kept me from the computer for a couple days. Im back now and still annoyed by... |
Forum: C++ Oct 11th, 2008 |
| Replies: 11 Views: 1,438 I have done something very similar to that previously so I am pretty sure thats not the problem.
BTW Thanks to everyone thats been trying to help. This is getting really frustrating. |
Forum: C++ Oct 11th, 2008 |
| Replies: 11 Views: 1,438 Well the definition is within the class and classes can access their own private data members so ya it should work. I tried putting it in the public section just to check and it did the same thing. ... |
Forum: C++ Oct 11th, 2008 |
| Replies: 11 Views: 1,438 Our professor gave us a skeleton of the code and it already had the return statement in it so I didn't change it. The LinkedList = operator overload returns a pointer as well. |