General C++ Programming - October 2012

Reading a csv file
 
If I have the following in a comma separated value file, how could I check the value of each row's s...
[no replies]
simple coding question
 
I'm trying to figure out what this code means. Here's the code I'll explain : void CvMapGenerato...
[2 replies] Last: ok thank you... :-) (by AeonFlux1212)
Stack questions
 
I need to finish "int evaluate(string exp)" What am I missing to return the proper results? For exam...
[no replies]
Switch to If statement
 
This is a part of my program, that queries the user If they want to see the process of sorting numbe...
[no replies]
Is it possible to acces the data from an object of Class1 using a function from Class2?
 
The full question would be: Is it possible to acces the data from an object(or multiple objects) of...
[no replies]
by chief
Does anyone know of a good site to learn about memory usage and debugging?
 
I have done a little research on debugging programs and what I have come to find is memory leaks is ...
[6 replies] Last: Well thanks but I solved the problem. I had a load function that was i... (by chief)
Variable of objects passed to functions becomes null?
 
Whenever I call that function again, b.is_clustered always returns to 0 even though it is changed ...
[no replies]
by paetim
Vending machine problem
 
Need help on how to start this. Could someone please help me!!!! 1. Create a program that sim...
[1 reply] : Start on accepting Input, I imagine you know how to do that, then make... (by Callum5042)
Why is it swapping?
 
So I was going to write a small program that swaps 2 numbers values. But in the function, I don't ha...
[4 replies] Last: Haha yeah, normally I don't even use namespaces.. was being lazy and i... (by Callum5042)
C++ Infix to Postfix Error
 
I keep getting this error when I try running my program, it seems to be aborting at line 28 for some...
[5 replies] Last: !mystack.empty() is not a declaration. And if your stack is empty w... (by cire)
Runs in VS but not .exe
 
I am having an issue with the malloc line where it runs in VS but not the .exe the issue is between ...
[8 replies] Last: screw it... im giving up (by glaser209)
Global Variables in a For Loop
 
Hey, I have a quick question. When I try to compile this program that has a global variable declared...
[4 replies] Last: If somewhere you wrote "using namespace std;" you should know that tha... (by LB)
by odlumb
problem importing native struct...
 
My environment: Windows 7 x64 Professional Visual Studio 2010 Here is the problem... In fi...
[no replies]
Need help finding biggest and smallest numbers
 
Hey guys I need help finding the smallest and biggest number. All of the numbers are in one file. Th...
[1 reply] : Read a number. Is it the biggest so far? Make a note of it if it is. R... (by Moschops)
Write a C++ program that simulates the casino game of craps
 
Write a C++ program that simulates the casino game of craps. These are the rules of the game: • I...
[1 reply] : This is literally "srand()", "rand()" and a switch case block. If you'... (by Computergeek01)
selectionSort FUNCTION NOT WORKIING
 
Hi there, the function selectionSort in the class below is suppose to perform a selection sort on a ...
[6 replies] Last: You can't test a single part of your code that relies on other parts o... (by LB)
Making Functions
 
if(choice=='E'){ cout<< "Enter new employee ID: "; cin >> pos; if(pos < lower || pos > ...
[4 replies] Last: Still hurts my eyes. Add curly brackets after the line with if stateme... (by Fredbill 30)
Empty file when outputing
 
#include <iostream> #include <iomanip> #include <fstream> #include <cmath> using namespace std; ...
[4 replies] Last: After looking at this again, I think I see the problem. Looks like yo... (by SamuelAdams)
String Functions: Finding where this character goes
 
Hello I am trying to create a program which will read in from a file and output to the users display...
[3 replies] Last: First don't edit your posts to change the content, add a new post, tha... (by jlb)
October 2012 Pages: 123... 50
  Archived months: [sep2012] [nov2012]

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