General C++ Programming - October 2011 (Page 11)

Function resolution
 
How can I make something like this: DoSomething(int x, int y, int z, int t, int y, int u); DoSomet...
[2 replies] Last: I do not want to store them in object 'a'. I want to pass them to the ... (by Dimitar Kolev)
help to solve this error???
 
i write this code in visual studio 2010 and then compile it.but it shows the erroe below " Error 1...
[2 replies] Last: i think it means that the c++ doesn't your default integer (by abdirizak)
by Tatipu
Need help finishing this code ..
 
Beep .
[1 reply] : play(); that should do it. (by ultifinitus)
by Thanz
Swap
 
Dear fellows ve a look of this swap function n tell me why this line( swap(&x ,&x[j+1]); ) is pass...
[4 replies] Last: A reference IS an address. Passing a reference means passing an addres... (by S G H)
by Lauren
Quadratic Formula Help
 
I am trying to create a quadratic equation program that also places the output in a .txt file. This ...
[5 replies] Last: Also, I need the same statement " if (x1.real() < x2.real()) cout << x... (by Lauren)
Precision issues with acos/cos/sin
 
Hi, The issue at hand is simple: I have two vectors (a1, a2) that define the principal axes of an e...
[6 replies] Last: What about calculating sin(theta) as the height / hypotenuse of your v... (by Galik)
by ToniAz
Translating MSVC directives to ones supported by MinGW
 
Hello Everyone! After I found it earlier that #pragma comment is for MSVC only, I came accross ...
[1 reply] : http://www.mingw.org/wiki/CreateImportLibraries http://www.mingw.org/w... (by kbw)
Adding Fractions..help with the output
 
I am having a minor problem getting the correct output on the following program. I am sure it is ju...
[8 replies] Last: AWESOME...yes it worked. Thanks everyone for the help! (by jhotz30)
C++ how to program 8'th edition code examples
 
The book c++ how to program 8'th edition has a CD-ROM containing some code examples. Unfortunately I...
[1 reply] : http://www.pearsonhighered.com/educator/product/C-How-to-Program/97801... (by Intrexa)
by Mannu
Data file handling
 
i have created a report card in c++. the program does not save the data on closing it. kindly help m...
[1 reply] : You need to put your code in an int main() function. After that, yo... (by Stewbond)
save variables after build
 
im working on vb/c++ but now im on vb code but i just need an idea i know its wrong section but i ca...
[1 reply] : I guess that you will have to store the data in a file. I don't think ... (by Nisheeth)
by Tatipu
Question about seeds and random number generators.
 
Okay, my prof gave us an assignment and I wanted to test if my program was working correctly but I'm...
[3 replies] Last: Okay thank you (: (by Tatipu)
3D Game Engine/Library
 
I'm looking for a 3D engine/library. I've found a couple that I like but I want to make sure I'm no...
[3 replies] Last: I've started SFML a few weeks ago and found that it is very easy to le... (by Stewbond)
Power function usage
 
In the function pow(a,b),can we use a=pow(32,0.2); or a=pow(32,1/5); a and expected the resul...
[2 replies] Last: 1/5 is integer division. You want 1.0/5.0. Other than that, yes. (by helios)
Memory Allocation Issue
 
Been a very long day, and rather than post a ton of code, I think I've traced down where the error m...
[9 replies] Last: @ciphermagi Thanks, that makes sense. I'm filling a vector in main wit... (by aerowenn)
by Tatipu
Need a little help with how to do loops in this case...
 
Okay, hi , I have this program where I'm trying to print out a loop where x can't be less than 0 o...
[1 reply] : I don't know if you have x and y on different loops or in the same loo... (by Azagaros)
Assignment Operator?
 
I'm having trouble on an assignment with the assignment operator. Here is where I try to implement:...
[2 replies] Last: void BitVector::Unset (size_t index) ... (by tinkydwd123)
Help Calculating Total Numbers Through a Loop
 
Hi, I'm doing a project for my class and I have almost everything done, but I'm just a little stuck...
[3 replies] Last: edit: 1. problem lies on the fact that you used LESS THAN OR EQUALS TO... (by Ng Han Seng)
Tax Rate Table
 
First time programmer here. Maybe I am going about this the wrong way, but I am trying to figure out...
[8 replies] Last: I got it working. tyvm (by Nickolas Baker)
Noob WHILE loop
 
bool correct = true; bool wrong = false; double radius; do {...
[6 replies] Last: awwww yeaaah, thanks guys and gals! (by Andy334)
October 2011 Pages: 1... 910111213... 36
  Archived months: [sep2011] [nov2011]

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