General C++ Programming - June 2011 (Page 3)

C++ Filing Information Needed
 
Hi, i want to save list of my data into a file. Pls tell me the best way to do it. This code only displays the name i enterd and 0 values of age and id. Onc...
[1 reply] : Yes that can be done...You need to use some function like the below on... (by NewDev)
Tree matching
 
So I have a problem. Basically it's just pathfinding, only with trees.. I have a set of conversions from one tree to another. Using this set I want to find a...
[7 replies] Last: You're right. I didn't think about that.. (by hamsterman)
What is the function of cin.get(c)?
 
i know it takes one character at a time but if i give input HELLO WORLD what it will take then just H. And what will cout.put(c) print then?
[1 reply] : H, of course. (by hamsterman)
3D shapes giving me a problem in openGL
 
So I'm making a program where these little cubes bounce around in a small wire frame cube (glutWireCube), but I've run into a strange problem when testing the f...
[3 replies] Last: Good to hear. After 12 days no less ;) (by shacktar)
by LB
Just a quick check - calling the destructor
 
I wanted to make sure I am doing everything here correctly - this is a test of a situation where calling the destructor is needed. class A { int* p; public:...
[2 replies] Last: Thanks - should I be worried about alignment problems? (by LB)
array of vector<int>
 
vector<int> v(5) creates a vector<int> v of size 5 vector<int> v creates an array v of 5 vector<int>'s What if we want an array v of 5 vector<int>'s ...
[1 reply] : In general, it's not possible to pass parameters to constructors of ob... (by helios)
Else If question
 
My code is computing taxes. The user inputs how they are filing and their taxable income. I am trying to display "Error: Invalid income" if the income entered ...
[3 replies] Last: Don't display the results near the end of your code where you have cou... (by LB)
Computing question
 
My code is computing taxes. The user inputs how they are filing and their taxable income. If the user inputs a 1 (married jointly) I need thattax to calculate ...
[no replies]
How to convert a uint32_t value to string!
 
I have added this: uint32_t p5 = 97; uint32_t p15 = 1613; uint32_t rath1 = random_range(p5, p15); std::stringstream ss; std::string ret; ss << rath1; ...
[1 reply] : bump (by Xafterin)
Improving Performance when working with vector STL containers
 
Hello everyone, I'm working in a code and I do need to improve the performance of some functions that deal with vector objects. Up to now I found there's ...
[16 replies] Last: Hoard is commercial.. be careful. it gives good boost over libc on s... (by writetonsharma)
by waters
C++ beginners guide
 
I am 13 years old and want to learn C++. What are some good websites or books to get started on it?
[3 replies] Last: http://www.deitel.com/ (by king214)
need help creating a loop
 
We are creating something that gets the next day of a day that is entered, but with also a loop, i need something that will end the command when i will press -1...
[1 reply] : Hint to getting help: No one is going to waste time trying to decipher... (by Tresky)
by Tresky
Interacting With Excel
 
I am trying to make a program that will take data input through an SFML GUI and then print and format it into specific slots in an Excel document. Any good APIs...
[7 replies] Last: Just tested it out. Works insanely awesome. Thanks, your great! (by Tresky)
by holtaf
Open file for i/o
 
Hi guys! I have a problem writing code that must read and write into the same file. I don't know what I'm doing wrong. This is the sample code #include <fs...
[2 replies] Last: Thanks for the answer but I want to use the fie for reading and writin... (by holtaf)
Linking Problems using Visual C++ 2008 Express Edition
 
I get the following link errors when I try to build my program in Visual C++ Express 2008 Express Edition on windows 32. 1>Linking... 1>RBF_matrixFill.obj :...
[1 reply] : It means that compiler ( linker ) can't find source codes for that fun... (by holtaf)
Syntax errors question
 
I have a couple of syntax errors that I cannot quite figure out. This program is to equate one's personal taxes. A filing status and taxable income is entered...
[1 reply] : if you dont indent your code, you will never be able to find these ki... (by writetonsharma)
How to Match Values Within an Array
 
Hello, I am trying to take an array of a given size (5), and write a function that will select matching values within that array... ...for example...if I ...
[4 replies] Last: Hi, got some question on my c++ project. how can i validate or match t... (by Keith)
Test Animate
 
Hi Everyone; I would like to know how to animate text in C++ [Turbo C++] Here is the program I so far worked on [also tell me what are the codes used before a...
[2 replies] Last: #1 get rid of turbo-c++ #2 refer to sfml or sdl. (by ultifinitus)
stack unwinding negative example?
 
hi give me any negative example of stack unwinding. thnx
[3 replies] Last: for example this is the positive code. #include <iostream> using n... (by iamuser2007)
Password Masking
 
I wanted to mask a given string into '*' and use it in my project.please help.... Here is the program that I worked on till now... #include<stdio.h> #include<...
[7 replies] Last: My program was fine...but only 'ENTER KEY' works.....I need codes for ... (by reliableboy2)
June 2011 Pages: 12345... 28
  Archived months: [may2011] [jul2011]

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