General C++ Programming - July 2013 (Page 19)

by rofln
Segmentation fault when trying to traverse tree
 
Hello. I am currently working on a Huffman code program for one of my classes. I've been working for a while now but I have hit a wall. I have gone all the w...
[6 replies] Last: One issue is that the tree is composed of nodes that are in a vector a... (by cire)
I was wondering?
 
In java it is possible to light a led by simply sticking a LED into ceirtan holes of the printer port, you also need some code... but my question is how would y...
[1 reply] : The same way as in Java, you just need to set the appropriate pins to ... (by Duthomhas)
selecting elements from a group
 
Hi Hi, I have N vectors which look like this: [1→m] [m+1→2m] [2m+1→3m] [3m+1→4m] [4m+1→5m]..... [{(N-1)m}+1→Nm] I want to select 1 element f...
[1 reply] : Basically you need to compute m^N elements. This means that you need N... (by ats15)
Logical Error: Change value inside void statement
 
Hi there, I've encountered a slight logical error in my code /* Lab06_pensionplans.cpp Purpose : - Create a simple financial application to calculate...
[2 replies] Last: Hey thanks! :D I only done the question thanks to google, now I know t... (by shrayder)
classes and objects, pls can i get help with this?
 
1: Give a C++ class declaration called SavingsAccount with the following information: Operations (Member Functions) 1. Open account (with an initial deposit)...
[no replies]
by Limne
Accessing Every File in a Directory
 
So I wrote a program to turn a binary file's data into an unsigned character array for inclusion in an executable. It works just super. I'm wondering how I c...
[9 replies] Last: By chance, I've sort of just bumped into the source for the WALK progr... (by andywestken)
why am i getting mixed up strings when i am trying to append them end to end
 
so i tried string = string + string +string I dont the expected output in order I have tried output.insert(0,"\r\n PRIVMSG "); output.insert(11,jo...
[9 replies] Last: Okay thanks Disch, I thats really helpful, I like the effect the compe... (by devonrevenge)
Writing into files
 
Hello, i use VC++ 2010 express. I am making a windows form program. I want to make a program whitch makes a file containing number of seconds since midnight. I ...
[2 replies] Last: If you display the output to a label, does it look correct ? It works... (by Nobody471)
by Wux
Escape sequences and characters
 
Hello, I am making my way through c++ primer (Lippman) and I have found the examples/exercise so far quite good at reinforcing the topics described. In the esc...
[5 replies] Last: @Wux How would you print "Hello Mad" with the "M" represented as hex,... (by whitenite1)
Stop Scientific Notation
 
double number = 10000000; int range; //the length of the string result string result; //holds the number in a string ostringstream conver...
[2 replies] Last: I knew it was going to be something so simple. Thanks for the help! (by Noobplusplus)
Multiple declaration of global 'delete' operator
 
Hey Guys, How can I declare global 'delete' operation multiple times? Like, I've an implementation of global 'delete' operation in a file 'x' but I want a di...
[3 replies] Last: It's not allowed, global allocation/deallocation functions can be repl... (by Cubbi)
RegSetValueEx BOOL
 
I need some help im writing an reading from the reg on startup of app an on close on close i can write the bool to the reg with this RegSetValueEx( hk, ...
[4 replies] Last: When it comes to C++... bool is a built-in C++ native type which tak... (by andywestken)
by meesa
[C++] Multple c++ files causes "multiple definition" error?
 
I'm using multiple C++ files in one project for the first time. Both have need to include a protected (#ifndef) header file. However, when I do that, I get a mu...
[5 replies] Last: I know this has been marked as "solved", but just to be clear: - you ... (by MikeyBoy)
object in c++
 
hi all is it possible to don't declare an object for a class and use the function of this class ? i saw a code use this but i cannot find it again .. can some...
[7 replies] Last: i mean in that code i loss and can not find it again... no this link, ... (by foozhan)
Problem with classes.
 
hello, i'm following a ebook i bought from game institute it says the following http://puu.sh/3Dchg.png this is what i've wrote onto my script int ma...
[3 replies] Last: And inside main, something like: int main() { Wizard Gandalf; ... (by mutexe)
Overloading operator for complex numbers
 
I have a program written to add 2 complex numbers. Everything is working, except when the sum gets written, it gives me a number that is way off. Can you see w...
[12 replies] Last: For example complex_numbers::complex x(0, 0); (by vlad from moscow)
Pointer or &
 
The program should have a menu that allows the user to perform the following tasks: 1. To enter the source file name. 2. To enter the destination file name....
[3 replies] Last: pointer (*) or dereference (&) pretty much have the same function with... (by rmxhaha)
Texture or Image?
 
I happen to be using Sfml for graphics and was wondering if I should use images or textures for sprites. Does it matter?
[4 replies] Last: The main difference between sf::Image and sf::Texture: - Image is sto... (by Disch)
Conversions from textbox to string
 
Hello. I use VC++ 2010 Express. I want to make windows form app. I want to make something like this #include <fstream> ... ... ... ofstream File(vardas-...
[6 replies] Last: It's not an additional include you need here, it's another using state... (by andywestken)
Date Validation Help
 
How would I validate the date? Thank you. struct Inventory { char SKU ; char category ; int qty; double cost; char date ; }; vo...
[4 replies] Last: How do I do #2. substr() won't work for me. I assume it's because I'm ... (by hungrytacos)
July 2013 Pages: 1... 1718192021... 34
  Archived months: [jun2013] [aug2013]

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