Beginners - March 2009 (Page 19)

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...
[2 replies] Last: that was the mistake... thanks! (by rabidmachine9)
"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...
[4 replies] Last: Disch -- No problem -- thanks for the clarification! Also, I think... (by Zachary)
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...
[5 replies] Last: Yes, it can be done in one line of code total using count_if and boost... (by jsmith)
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...
[4 replies] Last: maybe try if( (a+b+c+d+e+f) >0 ) (by awasteoflife)
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 ...
[5 replies] Last: Oops sorry. You have to have sname.c_str(). I forgot the parenthese... (by eker676)
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: ...
[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...
[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...
[2 replies] Last: First of all this is not a hard problem. Maybe a tad confusing but.. ... (by eker676)
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.....
[1 reply] : time( 0 ) returns the number of seconds elapsed since some (fixed) poi... (by jsmith)
returning a matrix from a function
 
Can we return a matrix from a function?
[4 replies] Last: The same as any other type // pseudo code some-return-type-here... (by jsmith)
header files............?
 
Can header files have function definition........is it necessary that it must only have function prototypes.......
[6 replies] Last: Try wikipedia: http://en.wikipedia.org/wiki/Header_file (by Bazzy)
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...
[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...
[6 replies] Last: Thanks again for your quick response. I was up all night trying to... (by ktheq)
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 ....
[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...
[5 replies] Last: yw. it looks from your class declaration that you are on the right tr... (by jsmith)
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 ...
[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...
[9 replies] Last: You are right; it is likely that A b = mymap ; will call the copy cons... (by jsmith)
<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...
[6 replies] Last: Aaarrrggghh! I'm used to so many different languages! :( Thanks! (by PickleMan)
Difference between these two funciton
 
Item getFromList (NodePtr &hdList) { int number; number = hdList->data; hdList = hdList->next; return Item(number); } Item getFromList (NodePtr &hdL...
[2 replies] Last: yah, and IMHO a function named "get-something" performs a read-only op... (by jsmith)
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?
[1 reply] : Linearly. There's no other option. (by jsmith)
March 2009 Pages: 1... 1718192021... 29
  Archived months: [feb2009] [apr2009]

This is an archived page. To post a new message, go to the current page.