General C++ Programming - March 2009

Problem with classes....
 
I keep getting undeclared identifiers when I try to apply a class, I'm pretty sure I'm doing something wrong, just not sure what. #include <iostream> //in...
[3 replies] Last: Thanks I got it now, I just misread the chapter. #include <iostr... (by Bishopssix)
by everid
how to get virtual pointer?
 
Hi guys, Is there a way to access the virtual pointer which points to the virtual table? Another question is that, how to remember the size of "new"? say: ...
[11 replies] Last: I learned a lot but is more confused than before. After all, whatever,... (by everid)
by Cicek
I cant change my program: connect 4
 
Hi So I ve been programming connect 4, but I dont like the outcome, which I have copied in the next topic Problem is, that I want to add some columuns, as...
[3 replies] Last: Hi Well I think that the entire program is relevant, since the who... (by Cicek)
Storing data from a dataset
 
I am having a problem reading in data from a dataset and then storing it into an array. This is what I have so far: int array ; cout << "The original ar...
[3 replies] Last: hehehe... will reply to that post.. (by writetonsharma)
Converting long IP to dotted IP? (solved)
 
Hi Guys, In the code below, how do I convert long IP to dotted notation ? char arr = "192.168.1.102"; unsigned char a, b, c, d; sscanf(arr, "%...
[9 replies] Last: cool.. :) (by writetonsharma)
by aasman
vector iterator giving extra output
 
i am just initialising a vector using while and printing the result but its giving extra 0 in the begining of the data.i don't know why this is happening.plz he...
[2 replies] Last: thnx Disch ..i got the error. (by aasman)
by Gaylle
(solved)cant get this program to work
 
hi everyone. i hope y'all r doin great today. i saw this prob somewhere and tried to solve it but being such a rookie, my nested if statements just wont work. c...
[10 replies] Last: a couple of places you have put \n in '\n' , change it to either endl... (by helios)
Does list::pop_front call destructor
 
Hi, Can any one give some idea whether the call to list::pop_front invokes destructor or not. As per definition given for list::pop_front on cplusplus.com sit...
[2 replies] Last: If you have a list of pointers-to-something then keep in mind that wha... (by jsmith)
question about _CrtDumpMemoryLeaks( )
 
I have a class that can load a file and put the contents of it into a vector. Its contructor takes in a vector<char> by reference. I think it may be leaking mem...
[1 reply] : You should place _CrtDumpMemoryLeaks() at the end of your program. It... (by kbw)
by miko87
converting four programs into four functions
 
Here is the problem : Using FUNCTIONS,combine all four given programs into a single program. Each part should have its own function (basically you’re con...
[1 reply] : How can your program be error free if its not returning the correct re... (by buffbill)
File Handling prog explanation
 
Hi all I was trying to understand file handling in Cpp. I came accross the followig code: #include <stdio.h> #include <stdlib.h> int main(int argc, char *...
[3 replies] Last: argv would (by Gumbercules)
diamond number
 
how to draw of diamond of the form A B-B C---C D-----D C---C B-B A the input data is D can someone give me a rough idea...
[4 replies] Last: Something like this does it but its pretty clunky. How do you apply sa... (by buffbill)
create/edit dbc files
 
I've searched on google with no luck. What do I need in order to create and edit dbc files?
[10 replies] Last: Nothing on msdn about creating, editing, and reading .dbc files. (by Gamer101)
Problem with sorting datasets ASAP!
 
I have a problem with my code... First of all, is there a way (in very basic fstream) to store values in a dataset directly to an array that I can display in m...
[13 replies] Last: This is my program, and I'm getting crazy numbers when I comile... ... (by satchmo05)
by cipok
automatic taller machine(atm)
 
can anyone change this program just only use include<stdio.h>...????? #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<iostream.h> void ...
[4 replies] Last: thanks eker.. (by cipok)
by Disch
Exceptions: how far do you go?
 
I'm just curious as to how heavily the users here use exceptions and exception handling. I don't use them much myself, currently, but I am making a lot of chan...
[3 replies] Last: Exceptions are pretty much required if you are overloading operators (... (by jsmith)
array overwrite/bad pointer?
 
/*------------------------------------------------------- 1. 3 Algorithms to find the smallest sum from consecutive numbers. -------------------------------...
[2 replies] Last: thanks- i changed it to a dynamically allocated array and that solved ... (by dulahdaglace)
stack
 
How do I verify if my compiler stack is growing upward (increasing memory) or below (decreasing memory)?
[2 replies] Last: There is no guarantee where a or b will allocated within a function. ... (by kbw)
how to fit range coordinates?
 
Hello, I try to make correspondance between intervals, I m' explain myself: - first file (file1.txt) is a list of intervals as format : id1 3455 3463 ...
[no replies]
problem with return 0;
 
hello.. we need ur help.we faces some problem to run the programme because there is an error at the end of return 0programme #include <stdio.h> #include <s...
[7 replies] Last: I'm amazed that anyone was able to decipher such a terribly formatted ... (by kempofighter)
March 2009 Pages: 123... 21
  Archived months: [feb2009] [apr2009]

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