General C++ Programming - October 2008 (Page 3)

Classes, Pointers, and Functions
 
Ok, lets say I have a generic function like this: void send_name(animate* Animate) { cout<...
[2 replies] Last: Yes, but this is just an example of how the problem comes up, it's tha... (by firedraco)
by jithin
Segmentation fault ...while accessing the struct member of type vector
 
//defining structure typedef struct config_files { string A; string B; ...
[1 reply] : Try clearing the vector...it should be cleared by default, but... (by firedraco)
random organized array
 
Hi all, I have a problem and I hope there is an easy solution for that. I have a linear array ...
[2 replies] Last: See also random_shuffle(). (by jsmith)
im having a problem this is my first time using structs .. i think its in main
 
#include <iostream> #include <iomanip> #include<fstream> using namespace std; const int size=...
[1 reply] : infile>>firstname.myStudents >>lastname.myStudents >>testscore.myStud... (by Smok006)
LNK2019 and LNK1120 errors
 
Naturally, I searched for solutions about these errors, but it doesn't seem to corrolate with mine. ...
[1 reply] : Found a few things wrong. 1. The problem with the friend function w... (by guestgulkan)
Regarding Eof function
 
I would be glad if someone can help me out... In our class teacher told us to check for eof using...
[3 replies] Last: Thanks...I understand it now. Our textbook is very confusing....Now it... (by vin1391)
CSV in array
 
I want to read from a stream and put the data in an (2D)array. The file I'm reading is a CSV-file li...
[6 replies] Last: Thanks for the code, trying to work it out.. (by rkoster)
by shox
Huffman problem -> Floating Point Exception
 
Hello, I'm working on a Huffman Coding program and I'm having some trouble with my decompression. I...
[2 replies] Last: I get this from the debugger: Building to ensure sources are up-... (by shox)
How to prove the ff program?
 
How to prove the following program if it is correct... using some kind of BNF solving... Please need...
[4 replies] Last: what about the "typedef"? which statements to be replace?? (by dualshock03)
HEAP error
 
I have no idea what is going on here. I use the following code. It is called. Everything is fin...
[10 replies] Last: From the code you have specified I cannot see any cause of your heap e... (by Zaita)
Asio: Synchronous? Asynchronous?
 
Hi, first time poster here. I've been trying to work my way through some Boost::Asio tutorials, a...
[4 replies] Last: On top of it (as above said) Synchronous blocks the process until the... (by satm2008)
Look at my Local Port Scanner - Need to Be Fixed Little Bit!
 
First of all, i want to say Hi! Glad to join your great forum & glad to part of your members team! ...
[9 replies] Last: Just a note. It looks as though you are actually making a connection ... (by Zaita)
passing istream reference to derived funtion
 
Are there any restrictions on passing an istream reference to a derived function? Is there any way ...
[1 reply] : More information: The problem seems to actually occur during the ca... (by digiplant)
How to get string from a file terminating with another string
 
I want to get a string from file terminating with another string. As We have data file data.txt a...
[8 replies] Last: Hey aakashjohari, You're on a forum belonging to one of the best C+... (by danthehat)
Listing a Directory
 
I want to do is following Listing the file in the directory and save all relevent information to ...
[4 replies] Last: while (pent = readdir (pdir)) // while there is still something in ... (by guestgulkan)
Language gurus: Is this a valid structure?
 
typedef union { uint16_t gray; uint16_t rgb[ 3 ]; struct { uint16_t red, green, blue;...
[2 replies] Last: Thanks for the response. That is basically what I was wondering. I onl... (by Duthomhas)
how to remove an integer from a array
 
so i have this program and in my removeAt function i need a new way to remove an integer out of the...
[11 replies] Last: I would study my code until you understand it. Copy+Paste is only goin... (by Zaita)
Creating an Array of pointers
 
Say if I wanted to make an array point to an array of pointers.. lets call the type TypeOfObj...
[2 replies] Last: I think this is what he means: TypeOfObject** arrayOfPointers = NU... (by cjmalloy)
How to create a new object
 
I just learned about objects. But I still dont know how to create a new one within the program. For...
[3 replies] Last: great, thank you smok006 and jlamothe. (by Cerburos)
Reading Lines from Text File
 
I have searched many a site to find an answer to this question, so here goes: (This is actually C, ...
[6 replies] Last: I saw that example before, but my question with that is, where do i sp... (by madd0g17)
October 2008 Pages: 12345... 11
  Archived months: [sep2008] [nov2008]

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