General C++ Programming - November 2011 (Page 31)

How do i get the code to loop?
 
if i have a programn requesting a password and the password is incorrect it simply moves on and ends the code. how can i get it to start at the beginning after ...
[2 replies] Last: Thank you very much! (by redacted178923)
by Shigi
Qt Framework
 
Hi everybody, in these days I work on a project where I need to use "nice" and fast items such as containters, methods and I appreciate a "nice looking code"...
[no replies]
cin.getline with while loop prob?
 
Everything is fine but after the while loop the input was crapped.. why? int main() { char cont; char name , birth , address ; //to declared user n...
[1 reply] : cin >> leaves a newline char in the stream which is found by getline. ... (by hamsterman)
Branch and Bound Pruning
 
Can you share some b&B pruning methods or a link to a good source of info? thanks
[no replies]
Trouble plotting stars on a 2D array graph- No idea where I went wrong
 
I tried searching all over the internet for some help on this problem, but I couldn't find even the smallest amount of help for it. The problem is to make a gra...
[4 replies] Last: So, I hope you returned from your walk. Here, I got something for you.... (by Pravesh Koirala)
the iterator of a list class
 
I want to define a nested class iterator of the dlist class, thus I coded it as following. I know it is incorrect but I do not know what is the right way... ...
[no replies]
Cannot allocate an object
 
So i'm doing this homework problem for my class and I keep getting the error (Cannot allocate an object of abstract type 'Bond') when I'm trying to create bond ...
[1 reply] : Hey, I was just tinkering with your code and I found something that yo... (by Pravesh Koirala)
Prime number between 2 bounds
 
Hello! I have most of this code done, but whenever I run it, It gives me mostly prime numbers with some non-prime mixed in (like 15 and 21). Can anyone point...
[7 replies] Last: Alternatively, have you ever heard about Sieve of Eratosthenes?? It w... (by Pravesh Koirala)
Graphics
 
could anyone tell me a good website that can teach you how to use graphics in your c++ program I'm getting bored of console applications, and I pretty sure I'm ...
[1 reply] : http://lazyfoo.net/SDL_tutorials/index.php (by ultifinitus)
Huge Queue
 
Hi All, I'm doing priority graph traversal using a loop and a priority queue. When using large test cases the queue becomes HUGE and the program terminates w...
[8 replies] Last: I guess list isnt supperted because the queue needs a direct access da... (by mohsaied)
by xchan
problem on sprites/image
 
dbLoadImage("background.bmp", 1); dbCreateAnimatedSprite(2, "player0.bmp", 5, 2, 2); //Creating Sprites dbSprite(1,0,0,4); dbSprite(2, 200, 100,2); m...
[2 replies] Last: indeed i am planning to carry on OpenGL. Either on the 2 is ok for me.... (by xchan)
by evensk
Looping wiht an in data help please..
 
Write a looping code segment that takes as input up to 20 integer scores from file indata, and outputs their average. If the file contains fewer than 20 scores,...
[no replies]
by evensk
I need help how to do this homework please..
 
Write a looping code segment that takes as input up to 20 integer scores from file indata, and outputs their average. If the file contains fewer than 20 scores,...
[no replies]
Objects with Objects
 
Hey, so I'm trying to create binary search trees using the vector class and my own node class. Within each node, I have 2 other nodes, 2 booleans, and an interg...
[2 replies] Last: Thanks, I figured it out. Basically just made another function that te... (by SecurityCop)
Multi-Dementional array help
 
I have this homework assignment that I have to do but it keeps telling me that I can't pass the 2-D array by refernce. How else would I be able to make a functi...
[no replies]
text rpg help
 
I've been working on the concept for a text rpg where one can move from room to room. Here's the code for the concept: #include <iostream> using namespace std...
[2 replies] Last: Thank you so much for the help. (by Alecnotalex)
by Rockie
Problem with highest average grade
 
Use the following lists for student names and their grades. Isabel (92, 95, 94), Steve (99, 76, 68), Michael (89, 70, 85), James (80, 75, 71), Jennifer (78, ...
[3 replies] Last: @tfityo thanks that help like alot now i got it :) @ceruleus I still ... (by Rockie)
Visual Studio C++ Inline Assembler
 
I have an assignment to optimise a c++ code that prints a tree in ASCII using partial assembly commands. The issue is that I have to take user input and output ...
[no replies]
Handling std::endl in an overloaded "<<" function.
 
Hi All, I'm trying to build a logging utility. It creates an object that can be used just like a std::cout. The added benefit of this object is that it can s...
[11 replies] Last: Reference: Standard C++ IOStreams and Locales: Advanced Programmer's ... (by Duthomhas)
< redirect data from file, win32 vs Linux
 
Hi, I have app that take data from file as argument from command line like this: $> app.exe < input.txt So it works fine on LInux, but doesn't want to work on ...
[no replies]
November 2011 Pages: 1... 2930313233... 47
  Archived months: [oct2011] [dec2011]

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