General C++ Programming - September 2012 (Page 12)

How to pause the screen
 
Hi.I am doing C++ in dev-Cpp, and my screen doesn't pause, so I cannot see the result of my code.Here is my code: #include <iostream> using namespace std; ...
[15 replies] Last: Thanks all, esp. ne555 that solved the problem.'tail recursion' or sim... (by hooshdar3)
Error that shouldnt be showing up
 
// Includes #include "stdafx.h" #include <iostream> #include <conio.h> using namespace std; // Main Function void main(int argc, _TCHAR* argv ) { string wo...
[2 replies] Last: Try to include header <string> . (by vlad from moscow)
Queue using doubly linked list
 
I actually didn't finish my program, but I am not able to remove an element or display all the elements in the following program /*Queue using doubly link...
[18 replies] Last: Thanks. (by Keshav2050)
C++ problem
 
Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include mer...
[5 replies] Last: double is fine (it has 16 significant digits), only need to use float ... (by TheIdeasMan)
inhertience
 
can anybody tell how to make min priority que from a max priority que by inheriting it in a class ... class min_que : public max_priority_queue<t> // use thi...
[2 replies] Last: yaa i am using stl priority queue then how to do... can anybody give ... (by iit2011101)
modifying char** in a function (pass by pointer?)
 
Hi: This is for native C++, a Win32 Console Application; I'm working in Visual Studio 2010. I'm trying to do an exercise where the goal is to keep the varia...
[4 replies] Last: Hi Cire: You're absolutely right. I stepped through the debugger and ... (by nll2010)
How can I access a series of object from an object? - resolved
 
I've made a really simple example situation below (code not finished, need your help for that) to show what I mean. I used the teacher and student example to ma...
[4 replies] Last: ne555, thats not quite what i was looking for but after more searchin... (by carebearboy)
by Malica
For loop (1,2)
 
I typed the following coding on turbo c++ compiler #include<iostream.h> #include<conio.h> void main() { clrscr(); int i,j; for(i=5;i>=1;i--) { for(j=5;...
[20 replies] Last: Oh, well, if it's in Java it must be good. (by Moschops)
c++ default constructor
 
I have a class like this example: Class Customer { public: string name; } it has a default constructor (that does nothing). when i create an object ...
[4 replies] Last: The size of the data member name is equal to sizeof( std::string ). ... (by vlad from moscow)
For loop help
 
// Includes #include "stdafx.h" #include <iostream> #include <math.h> #include <stdio.h> #include <conio.h> using namespace std; // GCD Function int g...
[2 replies] Last: Alright thank you for the help, i shall use a while loop. (by Reaper1)
Jedi Scanner v.1.0
 
Hey c++ forums, I have made an scanner called Jedi Scanner v.1.0 . Features: _____________________________________________________________________________...
[11 replies] Last: host_name = (char*) malloc(sizeof(char*)*128); host_name[strlen(host_... (by closed account 1yR4jE8b)
Concepts needed to write games
 
Hello, I am a C++ newcomer who has also studied java. So far, I understand reasonably well concepts such as functions, pointers, basic input/output, arrays, ...
[2 replies] Last: The ability to think about the problem in a logical, coherent way such... (by Moschops)
by vw4x4
please explain
 
strings are stored in memory as array of characters with a null charactera te the end.in this statement cout<<"hello"; is this string being stored in memory.p...
[3 replies] Last: Each string literal is stored in memory and whether two equal string l... (by vlad from moscow)
by alend
Delete pointer to pointer
 
Can I delete int **pRows = new int*[*nrow]; pointer with delete pRows or I must use delete pRows ? (I want to just delete the pointer and keep the cont...
[5 replies] Last: Thanks, (by wdiLi)
C++ project
 
Hello to all i a making a c++ project... i have some trouble because i have low knowledge about c++.. I want to ask that how we can read a particular paragrap...
[1 reply] : use streams: http://www.cplusplus.com/reference/iostream/ifstream/ (by coder777)
optiontips.in
 
class CPop { CBSVector<CTour> pop; CBSVector<double> probability; int popsize; double TotalFitness; CTour Elite; CTspGAParams GAParameters; } error ...
[1 reply] : You need the #include for all those classes (CBSVector, CTour, etc) A... (by coder777)
by jquant
Weird output that's not expected
 
Afternoon gang, I tried creating a sample program for learning purposes and failed. I'm trying to have multiple options for an input and this is what I develop...
[8 replies] Last: Thanks so much for the code writing, that's exactly what I wanted. Th... (by jquant)
LPSAFEARRAY
 
Hey guys! I have a particular function void retrieveFTA (int yr, LPSAFEARRAY * ppsa); But "LPSAFEARRAY" is giving me a hard time. At the moment I don't ...
[2 replies] Last: I did a search for the header " OaIdl.h" in all the files and that did... (by tenpoundbear)
How safely override function
 
Hi all I wanted to ask if anyone knows how I can safely override function. Here is what i am trying to do: virtual T& operator (unsigned r_, unsigned...
[3 replies] Last: It is enough to have subscript operator for one index. Only you should... (by vlad from moscow)
o
 
-
[1 reply] : // Get the input for the first starting number and check if its positi... (by vlad from moscow)
September 2012 Pages: 1... 1011121314... 32
  Archived months: [aug2012] [oct2012]

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