General C++ Programming - October 2012 (Page 30)

exception handling
 
I am trying to use the try catch for any kind of exception by using catch(...) but it is not catching the exception. Is there any method through which i can cat...
[10 replies] Last: means i need to throw an exception if it not in there. Actually i was ... (by sisodia)
Help Desk check please.
 
....
[3 replies] Last: I am new on this site. Thanks for the direction guys. (by Mogesii)
Unexpected Node Swap for Doubly Linked List
 
Good Day! I'm teaching Doubly Linked Lists and I gave my students an exercise on Node Swapping with guidelines. The prototype is as follows: void node_sw...
[1 reply] : Works because line# 6 in the student code? if(a->next) t = a->next; ... (by codewalker)
iterator problems ?
 
Heyy rrybody I have this function that when given the x and y of the mouse will select a window but the problem is sometime when i create a few of the same wind...
[no replies]
Gravity and deltas
 
I've got a nice program I'm working on which simulates gravitational orbits however I'm having a lot of problems surrounding the use of time deltas. Where shoul...
[3 replies] Last: When I do these types of problems, I like to add dT as an argument. T... (by Stewbond)
sorting lists
 
deleted
[1 reply] : The problem with this approach isn´t the sorting... that part´s easy... (by Stewbond)
Resolutions: How can I fit all sizes?
 
Now I know this is not an easy question, but after how many other posts I have seen on this with no definite answer I will ask it again. How does someone make a...
[6 replies] Last: Ok thanks, I know what vector graphics are I just didn't know how prac... (by Pickle Gunner)
A question about inheritance and polymorphism
 
OK, I wrote a program and it was something like this: #include <iostream> // Abstract Parent Class class Parent { public: virtual void DoSometh...
[10 replies] Last: Ugh, ok I feel I'm complicating myself with something that can be done... (by oldcrow)
Polynomial Addition in Array-based Linked List
 
I've made a polynomial class using an array-based linked list, but my addition function isn't working. It seems to work if the 2nd polynomial only has one term,...
[2 replies] Last: I've already created a working pointer-based polynomial linked list, n... (by TheJJJunk)
please help me finish this code
 
I'm sorry because I don't konw how to make my in code in an box like others, it's my first to log in this forum. here's my problem: I wrote a RPG CMD program, t...
[3 replies] Last: bool Player::attack(Monster monster ), what should I do? You shoul... (by Disch)
how to make a prymaid in c++?
 
Right now this is what i have but with numbers(look at seed1) * ** *** **** ***** and i want this program to output something in this pyramid/christma...
[2 replies] Last: void output (int height, int seed1) { int n; int n1; int... (by Chervil)
Octal number
 
I need to make this... to input an octal number and it would output the binary like converting the octal number to a binary... thisi s my code so far.. yet it ...
[8 replies] Last: Please use code tags - the <> button on the right. Does this help... (by TheIdeasMan)
URGENT HELP NEEDED! Short on time, Plz help!
 
I want to make a program to calculate cost of gas used. Plz if anyone can give algorithm. Here is what i have to do: Suppose that charges by a gas company a...
[6 replies] Last: Thanks. I will try it. (by Khubaib)
by Vizkid
Program received signal SIGSEGV, Segmentation fault.
 
Im stuck with this error for quiet long please help me out. Here's the entire program error is for line 164 > u =U; //Including necessary files #include<...
[4 replies] Last: With the debugger, you should have a watchlist of variable values. If ... (by TheIdeasMan)
header and file problem using OpenGL
 
Hi everyone. I have just learnt how to include headers and links to other class files and am trying to rewrite this program I am working on using OpenGL and GLU...
[2 replies] Last: Got it working. Thought it was a problem with the headers but it is in... (by mikeecb)
by TJF
slow bitshifting 24 to 32 bit
 
Hello, I have here a working way of shifting a 24 bit audio file to a 32 bit buffer. The whole (!) file should be read to this big buffer. For every 3 bytes a ...
[3 replies] Last: The file could be very big! So using a separate big 24 bit buffer woul... (by TJF)
Need Help with my Client/Server Code
 
Ok, So I can successfully send and receive messages with my code, but the problem at hand is a little harder. First the admin must start the server program and...
[2 replies] Last: Where shall I begin? Ok, here we go. 1. Welcome to the forum. 2. Pl... (by kbw)
Unicode troubles...
 
Tried to output logical "and" and "or". Have wchar_t sym_and=0x22C0, sym_or=0x22C1; and do output via std::wcout. Also have setlocale(LC_CTYPE,"");...
[6 replies] Last: problem solved. had wrong font in notepad++ (a nonunicode one). (by icegood)
tower of hanoi
 
i am having aproblem in my tower of hanoi game using stack please help me to remove the error heres the code this is my header file < #ifndef STACK_H ...
[1 reply] : One thing I noticed int stack::pop(int x) { return A[--TOP]=x; ... (by codewalker)
student line up sort
 
#include "stdafx.h" #include <iostream> #include <string> #include <algorithm> using namespace std; int main() { string name; int people; co...
[11 replies] Last: ok, :) (by Reaper1)
October 2012 Pages: 1... 2829303132... 50
  Archived months: [sep2012] [nov2012]

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