Beginners - November 2009 (Page 20)

game of life the output is not right
 
#include<iostream> #include<ctime> using namespace std; void fillArray(char ); void disp...
[15 replies] Last: i finally figured it out thank you for your help (by bluecoolaid112)
by Ishtar
Generating very good random numbers
 
Hello everyone Please forgive the state of this code, I have quite literally only started coding ...
[3 replies] Last: Hello Ishtar, I have found an article about the rand() function wit... (by Tarson)
by JRevor
extern const declarations. How to get them to work?
 
My code has several files. This is a part of Peli.hpp . /*====================================...
[3 replies] Last: Oh.. i think i got it. I should have written extern const unsig... (by JRevor)
by Acid
C library function "rand"
 
Im trying to make some modifications to this game. I dont fully understand some of its code, basical...
[5 replies] Last: Each number has the same probability of being the result of that, depe... (by Bazzy)
by jnrf
new / delete operators in for-loop
 
Hi, I have a question concerning the new/delete-operators: I have written a program: int ma...
[5 replies] Last: Is narray been declared a pointer? you can debug your code and can co... (by writetonsharma)
by Vita
How to make simple chat app?
 
I've learnt basics of C++ programming, but I don't know how to make a simple chat application with w...
[1 reply] : if you google you can find many simple chat programs or client/server ... (by writetonsharma)
by disini
percentage program
 
Hi,I'm very new to this language, I'm in the midst of doing an assignment for my college and I'm stu...
[2 replies] Last: Thanks for your reply. What I'm trying to get is a 2% commission if th... (by disini)
Declaring static variable
 
static int goodAns = 1; if (goodAns % 2 == 0) cout << "Congrats" << endl << endl; ...
[2 replies] Last: Hello! Ok, what don't you understand? The static keyword ensure... (by screw)
Where is the problem?
 
This program dont work. If there is not even number after odd number,all negative numbers must be p...
[6 replies] Last: [c o d e ] code goes in here then you finish with [/c o d e ] Also... (by gcampton)
by bbbfan
Problems with Cin
 
Im pretty new to c++, and am really only using cin and cout so far, but im creating a program for a ...
[1 reply] : Hello! Here is my probe code: include <iostream> using names... (by screw)
by prob
Displaying a file
 
In this program I am suspose to be able to edit my grades.txt file. But I'm stuck and don't know how...
[10 replies] Last: This should help: http://www.cplusplus.com/doc/tutorial/files/ E... (by Zhuge)
by TBird
Please explain a DLL to me?
 
I've programmed in a few languages - JavaScript, PHP, and a proprietary language called GML used for...
[8 replies] Last: Awesome. Much thanks to both of you. I think I know what I need to k... (by TBird)
by sparky
does not name a type error
 
Hi, Code::Blocks keeps giving me this error message whenever I try to compile: 'LinkListIterator' ...
[2 replies] Last: Thank you helios and Alvaro (cpp-home.com). Forward declaration solved... (by sparky)
Funtions and powers
 
I have written a program to have the user enter 2 values and put the first one as the base and the s...
[1 reply] : float pow ( int a, int b) { float c = a^b; // ^ means xor in c+... (by Bazzy)
parsing user commands into my progam
 
lets say i have a class that computes the addition. substraction , powers of complex numbers. cur...
[1 reply] : You can write a simple parser, streams are helpful in this does th... (by Bazzy)
dynamic array
 
#include <iostream> using namespace std ; class NumList { private : static...
[6 replies] Last: In the dynamic one, you are calling an unexisting constructor on line ... (by Bazzy)
How to read every other column of a table?
 
I have a text file containing 6 columns, that are each 10 rows down. The columns need to be copied t...
[2 replies] Last: Thanks for the reply. I'd like them to be in the order of the first ex... (by xboxmods)
one vector for two class
 
how to i create a vector that holds two class' type?
[10 replies] Last: @helios: I will not gain anything. :-) The OP mentioned that he want... (by kevinchkin)
fstream , counting the occurences of words.
 
I am writing a program that uses fstream to take in words from a file and then outputs the the numbe...
[1 reply] : Another way is to not insert the same word multiple times. Check if t... (by kempofighter)
Number Representations Confused?
 
Hi, I have some code that looks like: char *response = new char ; unsigned short i; double...
[5 replies] Last: char is signed usually, so if you go over 127 (?) then you will star... (by firedraco)
November 2009 Pages: 1... 1819202122... 25
  Archived months: [oct2009] [dec2009]

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