General C++ Programming - March 2012 (Page 31)

linked lists
 
The following messege is not allowing me to compile my header file: 1>e:\program_5\program_5\word.cpp(200): fatal error C1010: unexpected end of file while loo...
[1 reply] : Duplicate http://cplusplus.com/forum/beginner/64308/ (by Stewbond)
can't compile
 
The following messege is not allowing me to compile my header file: 1>e:\program_5\program_5\word.cpp(200): fatal error C1010: unexpected end of file while loo...
[1 reply] : Duplicate http://cplusplus.com/forum/beginner/64308/ (by Stewbond)
genlib.h
 
Hello, I just have started to program on linux ubuntu I am using QT Creator And code witch I am trying to use is: #include "genlib.h" #include <ios...
[4 replies] Last: Given your code, the first link that pops up when you google genlib.h ... (by cire)
word replacement program.
 
Hello, I am doing a word replacement program in c++ : #include<iostream> #include<string.h> using namespace std; int main() { string str = "This ...
[6 replies] Last: Agreed (by Stewbond)
list line
 
does anyone knows how to tak out a single number from a list of a file and then process it for example if you call a data file that has this lis of numbers : 1 ...
[3 replies] Last: yup (by Disch)
int to char conversion
 
Hi, I need to store the value of an int variable as an element in a string. i.e. string S = "abcde"; int count; count = 15; //i.e count gets assigned some...
[3 replies] Last: Thanks Moschops and L B. L B is right that I wanted to replace rather... (by NGambit)
Union of two linked list
 
Can anybody tell me the logic of union of two linked list?
[7 replies] Last: ¿eh? It was pseudocode (by ne555)
Generating multiple characters from one seed
 
The title says it all. I have been trying to come up with something to generate little worlds (81 chars) using one seed. However, I came up with a generator t...
[1 reply] : You could do it with multiple threads but setting it up would take lon... (by Azagaros)
while loop exit
 
I intend for an 'n' to stop the program. When an 'n' is entered, the last line is contiuously displayed. How do I stop this while loop? #include <iostream>...
[1 reply] : 'n' is a char type, whereas X is an int type. This causes std::cin to ... (by ModShop)
How to show decimal points
 
Hi, I'm practicing with the following program and I cannot make it to show more decimal points other than 78.5, in other words I would like to show 78.537498...
[3 replies] Last: My bad, I just changed my pi to 3.1415 and I got the number I was look... (by fstigre)
Beginner Template .h and .cpp help
 
Hello all, This is probably a basic questions, but so far my searches have proved unsuccessful. I apologize if this question has already been asked but when ...
[5 replies] Last: Ah, I didn't see that. Here's what's happening: StackTest.cpp is inc... (by Disch)
pocket calculator program
 
Hello, I am trying to do a calculator program : The program should read in a text string containing a list of numbers separated by + or - and output the...
[1 reply] : Try the shunting-yard algorithm, it worked for me when I tried the sam... (by Kyon)
by Yart
Calculating Framerate in SDL
 
So I'm going through LazyFoo.net's tutorials and I wanted to make my program keep a constant framerate of 60FPS while displaying the framerate on the top captio...
[no replies]
by codrgi
dll writing
 
i have made a dll that is to inject into a process, the dll is using detours to hook onto the program, but i'm not sure how you are able to write into the exe m...
[1 reply] : Could you pass the address of the memory block to be written to the DL... (by Stewbond)
templates swap function error
 
Hello , I am new to cpp and doing a simple template swap program: #include<iostream> using namespace std; template<class T> void swap(T &a,T &b) { ...
[3 replies] Last: Here's another solution. Replace using namespace std; with using s... (by Stewbond)
by debulm
vectors or dynamic arrays?
 
If a program only requires that a boardgame board be of the sizes of ROWS and COLUMNS, then can a 2D vector be used instead of a dynamic 2D array? Dynamic 2D...
[4 replies] Last: If the size is not variant, you can easily use a statically defined 2D... (by roberts)
variable-sized object `bin' may not be initialized
 
working on school project that uses one class object constructor to call another to make an array of objects and store data.. tried a for loop that displays co...
[1 reply] : Continuation of http://cplusplus.com/forum/general/64214/ That's too ... (by Stewbond)
software application
 
please help me.. what is software application??
[1 reply] : It's a program. "Write a software application" means "write a program... (by Stewbond)
by MoLAoS
I cannot get my program to make more than one object.
 
I want to create a sort of game where you build ships and then fight with them. I am ignoring the ship construction part for now to get the physics/graphics ren...
[3 replies] Last: @ne555, according to me the memory leak in the program should onry ham... (by polar)
c++
 
example of payroll code?
[2 replies] Last: How many posts did you make? http://cplusplus.com/forum/beginner/6426... (by Stewbond)
March 2012 Pages: 1... 2930313233... 49
  Archived months: [feb2012] [apr2012]

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