
please wait
Permission denied |
hey guys I'm writing this program and Im geting this stupig error: Permission denied ld returned 1 exit status Here is the code: thank... |
Mar 10, 2009 at 10:08pm
[2 replies] Last: that was the mistake... thanks! (by rabidmachine9)
|
by Zachary
"break" command...where does it break to?
|
I have a program where I use a for loop to check an array for a succession of two numbers. The user inputs two integers, and, supposedly, the program looks thr... |
Mar 10, 2009 at 9:22pm
[4 replies] Last: Disch -- No problem -- thanks for the clarification! Also, I think... (by Zachary)
|
by StretchNutzz
Question on counting nonblank characters
|
Hey all trying to do some c++ homework and wanting to count the number of non blank characters and have hit a bit of a wall atm :( here is what i have so far... |
Mar 10, 2009 at 8:37pm
[5 replies] Last: Yes, it can be done in one line of code total using count_if and boost... (by jsmith)
|
by ltrane2003
Pass-by-reference code not giving the correct answers
|
Write a subfucntion called "diff_poly" to differentiate a polynomial. //Assume for simplicity, he polynomial (with integers conefficients) //is of degree no... |
Mar 10, 2009 at 8:18pm
[4 replies] Last: maybe try if( (a+b+c+d+e+f) >0 ) (by awasteoflife)
|
by Fallen03
Using I/O streams.
|
Kind of new to programming, and I'm wondering if I can open a file under the name inputed by the user? I was thinking that maybe I should use pointers, but I'm ... |
Mar 10, 2009 at 7:26pm
[5 replies] Last: Oops sorry. You have to have sname.c_str(). I forgot the parenthese... (by eker676)
|
by fanatical
Array bug? Explanation for what happens?
|
Well, I was trying to remember how to do multidimensional arrays. I typed in what I felt I'd memorized, but I had a little important typo. See code: ... |
Mar 10, 2009 at 6:01pm
[8 replies] Last: You are right. However, for simplicity's sake, if it does not make ... (by jsmith)
|
Question about object pool design pattern |
I was using wikipedia as a reference http://en.wikipedia.org/wiki/Object_pool I noticed that it is not recommended for use by design pattern books. I write... |
Mar 10, 2009 at 4:45pm
[1 reply] : I think it is because in C++, all of the containers allow you to write... (by jsmith)
|
by pamcor
solving C++ problem
|
i encounter problems in doing this program,,can anybody help me? plzzz.. this is the problem..im just only a beginner and my professor is giving us confusing C... |
Mar 10, 2009 at 3:54pm
[2 replies] Last: First of all this is not a hard problem. Maybe a tad confusing but.. ... (by eker676)
|
by Harlequin
time.h
|
I wanted to create a typing game.........i need a mechanism to keep track of the time in the background while the user types.......can someone find a solution..... |
Mar 10, 2009 at 3:08pm
[1 reply] : time( 0 ) returns the number of seconds elapsed since some (fixed) poi... (by jsmith)
|
by Harlequin
returning a matrix from a function
|
Can we return a matrix from a function? |
Mar 10, 2009 at 3:07pm
[4 replies] Last: The same as any other type // pseudo code some-return-type-here... (by jsmith)
|
by Harlequin
header files............?
|
Can header files have function definition........is it necessary that it must only have function prototypes....... |
Mar 10, 2009 at 1:49pm
[6 replies] Last: Try wikipedia: http://en.wikipedia.org/wiki/Header_file (by Bazzy)
|
by bangura87
error message: expected initializer before 'do'
|
I'm getting the error mesage: expected initializer before 'do' and im not sure what it means, can anyone shed some light on my problem. #include<iost... |
Mar 10, 2009 at 12:52pm
[1 reply] : You forgot a semicolon at line 9 The brace at line 40 should be at li... (by Bazzy)
|
by ktheq
class redefinition error
|
Hello all. After much research, I can't come away with the answer to why I'm seeing the following error message and I would appreciate some insight. The e... |
Mar 10, 2009 at 12:34pm
[6 replies] Last: Thanks again for your quick response. I was up all night trying to... (by ktheq)
|
by reyjunior
how to get numbers in order
|
Hi, I'm doing this program where the user inputs 4 numbers and then it outputs the numbers in from the biggest to the least number. This is what I have si far .... |
Mar 10, 2009 at 12:21pm
[5 replies] Last: If you want to become familiar with if() statements, fine. However if... (by jsmith)
|
by ktheq
Understanding constructors to define a class with 3 data members
|
Hi. I'm in the middle of writing the code for an assignment that is due this week for my Beginner C++ class. I've been trying all weekend without success to... |
Mar 10, 2009 at 1:23am
[5 replies] Last: yw. it looks from your class declaration that you are on the right tr... (by jsmith)
|
by user name
Calling class destructor if program killed
|
It's me again :D I've really been experimenting with C++ over the last week or two, and I just wondered if you could call a class's destructor just before a ... |
Mar 9, 2009 at 11:55pm
[3 replies] Last: You could try testing it by writing to a file inside a dummy class des... (by firedraco)
|
by efnx
maps
|
Hi, I'm trying to use a map with a string key to store a user defined class and seem to be running into problems. I'm using g++ and am getting a big barf of err... |
Mar 9, 2009 at 11:51pm
[9 replies] Last: You are right; it is likely that A b = mymap ; will call the copy cons... (by jsmith)
|
by PickleMan
<myprogram> has encountered a problem and needs to close. Why?
|
Code: char* filepath; cout<<"What is the name of the Move Pak that you want to import?"<<endl<<"\"_DEFAULT.pak\" is the default one."<<endl; cin... |
Mar 9, 2009 at 11:26pm
[6 replies] Last: Aaarrrggghh! I'm used to so many different languages! :( Thanks! (by PickleMan)
|
by luckyvictor
Difference between these two funciton
|
Item getFromList (NodePtr &hdList) { int number; number = hdList->data; hdList = hdList->next; return Item(number); } Item getFromList (NodePtr &hdL... |
Mar 9, 2009 at 11:04pm
[2 replies] Last: yah, and IMHO a function named "get-something" performs a read-only op... (by jsmith)
|
by luckyvictor
What is the quickest way to search an item in a link list?
|
What is the quickest way to search an item in a link list? |
Mar 9, 2009 at 10:28pm
[1 reply] : Linearly. There's no other option. (by jsmith)
|