General C++ Programming - February 2008

Recursive Functions and Factorials
 
Okay so I'm writing a program for class and I can't seem to put my head around this. The Code I got so far: // Demonstrating the recursive function fac...
[2 replies] Last: Here's a strong hint: count_r2() is doing a factorial except that it i... (by Duthomhas)
Operator Overloading questions
 
So I have been working on a Vector3D class, and to enhance usability, I have been overloading operators to define such functions as dot product cross product an...
[2 replies] Last: Don't return 'void'. Return 'Vector3D'. With the Vector3D on the le... (by Duthomhas)
Help for this question...Using Linked List ,pointers, C Structure~
 
Assume the following definitions: struct CardRecType { char cardID ; float balancePt; }; typedef struct CardRecType CardRec; struct nodeRec { CardR...
[1 reply] : I beg u all help me..T_T urgent... can teach me step by step oso can.... (by leochai86)
function to delete the first node in the link list
 
guys; please help with this. a function to delete the first node in a linked list it does not display the info. thanks. void deletefirstnode(Station*Curre...
[1 reply] : Without more info about how your linked list class looks, I'd only be ... (by cpjust)
by snap
poker program, is there a more efficent way of generating a deck of cards?
 
greetings everybody, i'm writing a simple console program in C++, i'm teaching myself so excuse any bad coding practices :-) and please point them out, cheer...
[3 replies] Last: could you post the class or structure? (by deleted account)
C++ using DB2
 
Has any body written an application using C++ and accessing DB2 data base?
[no replies]
how can i make a program using (struct)
 
how can i make a program using <structures> output must be: Enter your birthday: zodiac sign is: lucky color: lucky number: message: the program shou...
[2 replies] Last: i think it should work (by xiona)
Classes, Inheritance, and device drivers
 
Hi, I've been programming enbedded systems in C for years, but I am trying to move to C++ as I do more Linux based applications. I have a question regardi...
[2 replies] Last: scott my condition is exactly as you ..... i am also in search of s... (by xiona)
please tell me How use to random
 
We have a project. Our program is a quiz show. It is a who wants to be millionaire type of program. I really need to know how to use randow cause I need to ram...
[2 replies] Last: Dosshell.. thank you so much for replying... The thing is I need t... (by Ennaehj)
conversion of degrees
 
is it posible to convert double values into degrees?i have this project in c++ that derive a formula and requires conversion into degrees/angle. ex. of sol i...
[2 replies] Last: k, tanx for the advice. (by psykedelik)
what is the C++ counter part of C's REALLOC function?
 
Hi what does is the C++ counterpart of C's REALLOC function? If C++ does not have a counterpart for it, then how does one reallocate memory? Thank you in ...
[4 replies] Last: There is no C++ version of realloc(), but you can create your own Real... (by cpjust)
Linked Lists
 
I'm having some difficulty figuring out how to get a program that I am working on for a class that I'm taking to work. First off, we are to create an appointmen...
[1 reply] : In structure composition, you just include one structure in the other.... (by Duthomhas)
reading a charater without carriage return
 
hi everyone this is my first time that i m wriring in this forum....... presetly i m persuing a B.Tech degree ( 1st year ) and thus i m in to a lot of progra...
[6 replies] Last: OK, I decided to post a simple example anyway. Since this is a C++ for... (by Duthomhas)
Get help with VS2005
 
Hi all, Does anyone know where can I get help with debugging C++ project in visual studio 2005? I had my solution written in visual studio 6 and when I tried ...
[no replies]
loops and decisions
 
i have an example output but i am stuck right now and i dont know how to get certain things to add up in a loop to gets sums in a summary this is the sample out...
[no replies]
Help In Data Strucutre!
 
Part One 1. What does the following code do? double problemRelPrime (int n) { int rel = 0, tot =0; for( int i=1 ; i<=n ; i++ ) for( int j=i+1 ; j<=n...
[no replies]
by xtoxio
fstream in devc++
 
Hello all. I've read all the fstream tutorials, and none of the code works in devc++ 4.9.9.2. For example here is a function I'm working on. The code I have ...
[1 reply] : fstreams can be used exactly like C++ streams like cin and cout. cin.... (by Ganon11)
file insertion and deletion(highly urgent)
 
how can i delete a record which is present at the middle of a file from a file(without using another files)
[no replies]
not exact result in computation
 
i made a program computing the value of a short diagonal and the base of a parallelogram, given the height, base, and side.i compared the result with the calcul...
[1 reply] : Chances are that your calculator is less precise than your computer. (... (by Duthomhas)
link to dll files
 
hi, i want to link to dll files in my project. I have the header and implementation files and object library file to that dll file. I don't know how to call th...
[no replies]
February 2008 Pages: 123... 5
  Archived months: [jan2008] [mar2008]

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