General C++ Programming - February 2010 (Page 16)

vector:erase iterator requirements
 
In the two forms of vector::erase: iterator erase(iterator position); iterator erase(iterator first, iterator last); can the 'iterator' mentioned be a ve...
[4 replies] Last: That's a question for the c++ committee. (by jsmith)
What is the source-code to find the sum and avg of given numbers using arrays?
 
i want a program in c++ to find the sum and average of given numbers using ARRAYS. Please kindly help me by writing the source code for the above quesion! ...
[4 replies] Last: -) it's <iostream> , not <iostream.h> -) it's int main() not... (by Disch)
Problem with header inclusions
 
Hi, When I include the same header file of my own project in more than one code file (.cpp), it gives me a linking error (LNK2005) which says that the functi...
[2 replies] Last: a thanks! (by magnificence7)
Network programming with SYSTEMC
 
Hi I am a newbie to systemC i have to program an IP based system using systemC, i Have some idea how it can be made in C++ but how to convert it to SystemC? ...
[no replies]
BTREE CREATION
 
I am trying to create a B-tree, but actually the problem with the B-Tree creation is that I need to store it on the hard disk and I also need to allocate physic...
[1 reply] : The simplest solution: place all nodes in an array, and instead of usi... (by Abramus)
return value
 
If you have a function that returns a value, and you use that function like: int i = function(); Will the value that is returned be copied to int i, or will...
[1 reply] : Yes, it is copied (by hamsterman)
What is a Scope?What r the Scope rules?
 
In C++ what is meant by a scope? what are the scope rules of C++?
[1 reply] : Please google. Fin. (by closed account S6k9GNh0)
How to find the image of a given number?
 
In cpp, how to write a program in c++ to find the image of a given number? Please kindly respond...
[3 replies] Last: At least your honest... You need to elaborate because that alone wi... (by closed account S6k9GNh0)
plss give me a simple queue and stack program tnx
 
plss help me
[6 replies] Last: http://cplusplus.com/forum/articles/7263/ Little search button neve... (by Mythios)
return reference of pointer
 
In what situation we want to return a reference to pointer instead of a pointer?
[3 replies] Last: From what I know, a reference is simply a covered pointer. Passing a p... (by closed account S6k9GNh0)
I need to get this material, where can i find these?
 
This is the syllabus i am assigned to learn: Message Passing: Object oriented software development- Class diagram , Object diagram, Use case diagram, Sta...
[1 reply] : All of these have to do with a style of coding which has a standard ca... (by closed account S6k9GNh0)
What is the answer for this question?
 
"List and explain the syntax of input and output statements used in C++." Please kindly atleast provide me the hints of what to answer this question. Wa...
[1 reply] : http://cplusplus.com/reference/iostream/cout/ http://cplusplus.com/re... (by kevinchkin)
by JFloyd
Timer
 
I'm looking to make a timer, that after a set amount of time will cout a message. #include <iostream> #include <ctime> using namespace std; int main() ...
[5 replies] Last: http://cplusplus.com/reference/clibrary/ctime/clock/ (by Mythios)
Recursive binary search algorithm
 
Hi I trying to write a recursive binary search function. The program was is almost done however, when i attempted to make the program recursive it crashed. ...
[11 replies] Last: I just wanted to show you how to translate plain english into C++ code... (by jsmith)
by Tommy
Get numbers from string?
 
Hi everybody! Anybody knows how to get numbers from a string and put them into an array? The length of the string and the number of element (number) are arbi...
[1 reply] : Refer to this artilce: http://www.cplusplus.com/articles/numb_to_text/ (by mcleano)
passing tuple to a function
 
Hi Guys, I want to pass tuple as a function argument. Do I have to specify the exact contents of tuple which I will be passing or is there any other better w...
[7 replies] Last: Thanks so much PanGalactic. That's exactly what I was looking for. (by kevinchkin)
do..while loop being ignored
 
Hello,this program works great except the do..while loop..I want this loop to run in the main function and make the program loop until the user decides to quit,...
[7 replies] Last: thankyou nilesh (by pedr020)
by KeliJo
Prompt w/in a function header?
 
I have a assignment and the professor provided us with the four functions we need to include. 2 void functions, and 2 value returning functions. The two value r...
[2 replies] Last: Well that is alot simpler than I thought. Thank you so much. (by KeliJo)
Disk Reading
 
I am writing a kernel for my future OS. What is the code to tell the computer to read the disk with the operating system on it?
[3 replies] Last: Also http://wiki.osdev.org/Beginner_Mistakes (by chrisname)
My little test pong game
 
Could someone take this code: http://pastebin.com/f5adcc5d2 and see if it compiles on a Windows computer? Then see if it matches the bug shown here: http://sfm...
[4 replies] Last: *bump* (by closed account S6k9GNh0)
February 2010 Pages: 1... 1415161718... 21
  Archived months: [jan2010] [mar2010]

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