General C++ Programming - May 2009 (Page 12)

Segmentation fault in destructor.
 
I have written a code to traverse a matrix in circular fashion. The code is working fine and shows the output correctly. It's a template class. For all the data...
[11 replies] Last: This code: m_matrix = reinterpret_cast<node**>(new node ); for(... (by jsmith)
Find specific datas
 
Hello, i'm working on a program for my thesis, this program is supposed to go trhough a bunch of file and retrieve two sets of numbers each time it finds these ...
[3 replies] Last: string::find() does not return a boolean value. (by PanGalactic)
by jfq722
A little guidance please.....
 
ok, I have the Express edition of VC++ because the price tag is just right for me! I understand that there is no MFC included with this. I assume that means no ...
[2 replies] Last: 1. No, MFC is... Well, I'm not sure what it is, so I'll just quote Wik... (by helios)
To convert my code as a header file...
 
Hi Dear all I implemented chi square test. Now i want to convert this code as .h header file. so, my other colleague can use this very simply as math librar...
[3 replies] Last: ? I'm not sure what your trying to do ? #ifndef _INDEPTEST_H # ... (by closed account S6k9GNh0)
by poolet
my pi problem
 
hello, I'm a new on c++ an i want your help... here is my problem PI is an irrational number, i.e. it cannot be written as a fraction. It's approximate value ...
[2 replies] Last: Thanks your advice my friend......... i have another code but i don... (by poolet)
Inheritance
 
I am really have trouble understanding what I am doing wrong here. I have a child class that inherits protected items so that I can use them in the childs const...
[5 replies] Last: A prime example of something that works (i.e. something that a compile... (by DaveMortimer)
new/delete issue
 
Hi, all I have a issue: void main() { int *pc = NULL; pc = new int(2); int *pa = pc; int *pb = pc; cout << *pa << endl << *pb << endl; ...
[2 replies] Last: Right, excuse the ugliness of the construct below, but as Helios says ... (by jfq722)
I DONT UNDERSTAND THIS!!!! need answers
 
Here is syntax, everything seems 100% correct and yet it doesn't wanna recognize my objects. Help please: #include <iostream> #include <string> #include <i...
[5 replies] Last: Also - what's with the virtual inheritance? For example - why clas... (by guestgulkan)
DLL Class Headers
 
Hey guys, I just have a general question about the standard for exporting classes and members from a DLL. Is it customary to use one header for all the class...
[4 replies] Last: Ok, I got it working that way. I was having errors before which made ... (by enigmatix)
<vectors> vs. arrays
 
Hi: Thanks for taking time to read my question. I am trying to integrate a C++ code into another compiler that will not allow vectors. I had the programmer c...
[2 replies] Last: if you compare arrays with vector.. you may not find any advantages of... (by writetonsharma)
Passing multidimensional vector to function
 
Hi Dear all, i created vector of vector and passed it to function now i want to access its values within function but it display an error error C2679: b...
[2 replies] Last: Thanks, now it is working. (by amanyasin)
by kk84
Converting a single char to integer
 
Hi all, I have this problem, if let say I have an array of char says txt . How do I convert like txt to an integer?and not as a whole string
[7 replies] Last: so you have array which is storing the numbers... if i am correct.. ... (by writetonsharma)
Inserting Object into a List
 
I am writing a program that requires the user to enter information about a car, that information is stored into an object called Carritos, that object is then s...
[5 replies] Last: Why use char when C++ has this perfectly good string type? "perf... (by Disch)
Weird issues
 
#include <cstdlib> #include <iostream> #include <iomanip> #include <fstream> using namespace std; void openFiles(ifstream& inData, ofstream& outData); ...
[4 replies] Last: I'm not sure what you mean by code tags. When I compile it opens up a ... (by gobills)
Any possible way of doing this?
 
Ok so I want to know if it's possible to make a method like this: MyStruct *a() { //Edit Data in a. return a; } Now it may seem like a dum...
[2 replies] Last: Awesome, I didn't think it was possible but I just wanted to make sure... (by Mythios)
visual studio
 
Hi to everyone I have a source code(with solution file).I compiled it and run it works fine.But i want to know the in and out of the source code....
[6 replies] Last: You are very welcome. Rajesh (by ibama)
New projects in Visual C++ 2008 Express
 
I know how to create new projects and I have used other C++ compilers, but when I create a new project with my Visual C++ (based on other videos that have them)...
[8 replies] Last: I do not get what you mean. Post a link? I'll try GCC, but at the mome... (by haku776)
Weird function pointer problem...
 
Ok, I have a function pointer defined as such: typedef void (animate::*animate_func_ptr)(std::string); I have a vector of a pair with some of these defi...
[6 replies] Last: Funnily enough, that is what I was looking at for a reference. (by firedraco)
Issues implementing a skip list (so far just insertion)
 
I'm having trouble implementing a skip list. It's supposed to store rectangles and order them by a key which is a character array, using strcmp to order them co...
[1 reply] : In the skiplist constructor, do you really want head to have a rando... (by Hammurabi)
"Supposedly" easy program not working... With no errors
 
The program is as follows: Write a program that uses four functions to do the following: **USE ALL GLOBAL VARIABLES 1.) Ask the user for his nam...
[5 replies] Last: It is explained in the link I posted earlier: it makes the console win... (by Bazzy)
May 2009 Pages: 1... 1011121314... 17
  Archived months: [apr2009] [jun2009]

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