General C++ Programming - September 2012 (Page 3)

for loop pause
I'm having an issue with my for loop. Basically what i'm doing is i'm making a virtual hangman game...
[3 replies] Last: @Steven Menzies Yeah, I think the tweak was changing bool ok = true;... (by whitenite1)
// Includes #include "stdafx.h" #include <iostream> #include <conio.h> using namespace std; ...
[2 replies] Last: ah ok. thank you, i see and understand now, thanks for the help, white... (by Reaper1)
Random Numbers
I am developing a program that will generate algebra problems and answers for me to use for studding...
[8 replies] Last: int random = (rand() %5) + 1; (by soranz)
// Includes #include "stdafx.h" #include <iostream> #include <conio.h> using namespace std; // Ma...
[4 replies] Last: Mark the both your threads as resolved.:) (by vlad from moscow)
Quick question on a return
// Includes #include "stdafx.h" #include <iostream> #include <cstdlib> #include <ctime> #include <...
[5 replies] Last: oh ok, thank you. (by Reaper1)
Making a program loop.
I would like make my program so if the user enters a wrong value, the program will loop back to were...
[3 replies] Last: You should use a loop. For example do { // here you code } while ( s... (by vlad from moscow)
Passing a 2D array of Structs by referencePassing a 2D array of Structs by reference
SO im pretty new to c++ and im trying to pass a 2D array of a struct type by reference to a function...
[3 replies] Last: Remove the first brace { void function(balloons bArray ) { (by vlad from moscow)
glibc detected *** ./index: free(): invalid pointer
Hello everyone, I was making a relatively simple program to index a .txt file for class, and I got ...
[2 replies] Last: I am not using delete anywhere in my code, neither am I creating point... (by dragoonts)
Iterators past limits question
Hi, I'm having trouble finding documentation about iterator operations when they go too far. In part...
[1 reply] : (1) Yes (2..5) Something buggy. No STL algorithm will forbid you from... (by Duoas)
operator>> not found error
So, I was building this code recently and I got some errors (seems obvious right, hold off on the sa...
[6 replies] Last: Ok, I've fixed the issue. The problem was that my input operator funct... (by Woody1193)
guessing game do while loop
// Inlcudes #include "stdafx.h" #include <iostream> #include <conio.h> #include <ctime> #inc...
[1 reply] : wow nevermind fixed it, while ( num = num20 had to be change to while... (by Reaper1)
by vextes
Linked list dequeue
Hello, I am trying to create a singly linked list implementation of a stack, but I keep getting stra...
[6 replies] Last: If you call dequeue on an empty Queue, you're going to dereference a n... (by cire)
Sudoku Help
Hey guys, I've posted here before, and the only time I EVER come here is when I've been working on a...
[4 replies] Last: Yes they are constants. Both numRows and numCols = 9. I figured that... (by H0m3r0w)
Difference between two dates with overloaded minus operator
I have to input two dates, then subtract the earlier date from the later date, and output the number...
[5 replies] Last: but the output for the interger subtraction is garbage. Outputs like ... (by clanmjc)
by mmac
cout issues
when i run the program, the user is prompted by my cin.. but no matter what they put in, nothing com...
[13 replies] Last: Look at the warnings in @TheJJJunk's e-mail. The statements without e... (by doug4)
by obay
question in hugeint class
how to make (/)operator? // Fig. 11.23: Hugeint.cpp // HugeInt member-function and friend-...
[2 replies] Last: I agree about using code tags. You can use the "<>" button on the For... (by doug4)
Help needed
This is what i have written so far : #include<iostream> #include<cmath> using namespace std; int ...
[3 replies] Last: The code that @Aceix provided is a bit of overkill. However, he (or s... (by doug4)
STL allocator vs Operator new
Hello, I'm confused about the difference between the STL allocator and the Operator new. In the bo...
[3 replies] Last: You will no doubt have noticed that the STL containers take an allocat... (by kbw)
[HELP] Chrome Password Stealer - Code
What errors are you getting exactly?
[4 replies] Last: The code is not C++ , it is C++/CLI . If you took the code from l33... (by closed account z05DSL3A)
Reading from a file
I am in a c++ class and I am having problems reading from a file. I am trying to return specific par...
[3 replies] Last: Thanks! I appreciate it!! (by mhaggard)
September 2012 Pages: 12345... 32
  Archived months: [aug2012] [oct2012]

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