General C++ Programming - July 2010 (Page 19)

by POUYA
iostream file
 
I have both of DevC++ and also code::blocks on my computer. but when i want to compile my code with code::blocks , it gives me an error: error: iostream:...
[5 replies] Last: I know! edit this, old: #include <iostream> #include <iomanip> us... (by closed account NTDz3TCk)
by samu
mini program
 
who can design a program that stores and process employees salary using two dimension array the program also computes sum and averange,determines min and maxi s...
[8 replies] Last: I am working on it now, ready in three weeks. (by bigearsbilly)
finding the last function
 
I need a Help Solving this problem...Listen i Am at the very beginner level. Som Pls forgive my mistakes.. sum(2^i.i!) it should be like this: 2^1! +...
[1 reply] : The code doesn't look like your algorithm. You have all the pieces, b... (by kbw)
Prototype...!!
 
I have no clue what the following prototype means!! void abc() throw (double , int , long ) can someone throw a light on the above prototype?...
[3 replies] Last: Neither. Any function may throw anything, regardless of whether it has... (by helios)
Copy Constructors
 
why copy constructor must pass by reference? My initial thought was this class c1 { int *p1; public: c1() { // allocate memory for p1 } ...
[2 replies] Last: Great answer helios.. Thanks!! (by karthick88)
<complex>
 
here is a complex complex<double> com(10, 2); I can change the real part with com += 10; //com now is (20, 2) but what can I do to change the image part?...
[1 reply] : com += complex <double> (0, 8); Hope this helps. (by Duthomhas)
Random Functions?
 
Hey y'all! So I am creating a C++ project and I am fine tuning the beta. I have 10 different functions that run in a row, but I would like to make them run i...
[5 replies] Last: #include <algorithm> // random_shuffle() #include <cstdlib> //... (by Duthomhas)
Problem with getline function
 
Hi guys, I have searched for ages about an error in my c++ code. I am having loads of trouble with using the 'getline()' function with ifstream. There are many...
[6 replies] Last: thanks for your help and replies. (by jammas615)
openGL display text
 
In my code below, I want to display the text contained in the variable finalscore. I know how simple it sounds, but I can't figure it out. Thanks! #includ...
[1 reply] : http://forum.gamedeception.net/threads/1876-Printing-Text-with-glut (by m4ster r0shi)
Generating a Random Number?
 
I need code to generate a random number between -95 and 95. The code I'm currently using is seeded with the time, so when I call it over and over again rapidly...
[4 replies] Last: [quote=everid]if you can, move "srand ( time(NULL) );" to a higher blo... (by m4ster r0shi)
ifstream -> string -> vector<int>
 
Hello, I am using an ifstream to read an array of integers and insert it into a vector. The input file is referred to as mFile, and mSize is an integer that ...
[3 replies] Last: Yes and yes! I followed your advice, stumbled through it for a few day... (by RYoung992)
what is wrong with this
 
#include "stdafx.h" #include <iostream> using namespace std; int main() { int c,s,t.h; cout << "Please enter the card number" << endl; ...
[2 replies] Last: I have corrected some obvious things. If you have a number you don't u... (by Galik)
combining matrices using Scythe library
 
Dear C++ users, I'm a beginner with C++. I want to combine two matrices using the cbind function in the Scythe library. Below is my main function: #incl...
[no replies]
How do I move individual 3D objects in OpenGL?
 
Please help with my C++ OpenGL code! I am trying to make a simple game in OpenGL with C++ (my first). The issue I'm having is that the WSAD keys move the sph...
[2 replies] Last: [quote=Chaos3737]The issue I'm having is that the WSAD keys move the s... (by m4ster r0shi)
How to jump to the end of a line in a text file (1,2)
 
Hello, I am making a level editor for the game I'm working on! I am using SDL and C++ My problem is... I want to make it so you can resize the level after...
[22 replies] Last: yes i am premature im a 14 year old horny skater lol i know that you ... (by closed account y8h7M4Gy)
how to make
 
Write a programe that asks the user to enter the base and the power and gives me the answer please answer today and quickly
[9 replies] Last: why just don“t use the visual studio integrated?^^... Ahhh... Forg... (by Incubbus)
problem with STL mem_fun_ref and internal use
 
What am I doing so wrong as to make this code fail: #include <iostream> #include <functional> #include <algorithm> #include <vector> using namespace s...
[3 replies] Last: find_if() passes each element to operator(). ie, a "this" pointer, wh... (by jsmith)
by tony
music system
 
hi guys, I'm developing a music management system where there's a db for links to the songs and new songs can be added smoothly. searching should also be possib...
[no replies]
by Sahana
OS and Version
 
Thanks for your answers. I have been using the Windows XP[Version 5.1.2600] as the OS. Borland C++ compiler is a lot different from the Turbo C++ compiler I was...
[2 replies] Last: I think it should have been in reply to: http://www.cplusplus.com/for... (by closed account z05DSL3A)
by Sahana
Debugging various project files written in C++ using Borland C++ compiler
 
How do we debug various project files in C++? I have around 22 project files with .ide extension inside a folder which has many header files and other cpp files...
[1 reply] : You may need to use Turbo Debugger. It all depends on which OS and ve... (by kbw)
July 2010 Pages: 1... 17181920
  Archived months: [jun2010] [aug2010]

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